Hi,<br><br>I have been using an inbuilt LRU cache in one of my programs. I needed this cache to be distributed and hence thought of opting for Memcached. I wrote a sample program to compare the two and this is what I came up with:
<br><br><br><span style="font-weight: bold;">LRU:</span> 10,000 reads averages to about 16 ms that is 0.0016 ms per read<br><span style="font-weight: bold;">Memcached: </span>10,000 reads averages to about 2837 ms that is
0.28 ms per read<br><br>Hence a few questions here:<br>Q. Is Memcached only comparable to a database and hence to be used only to save db calls?<br>Q. Other than a distributed cache, what other advantages do I get in comparison to an inbuilt cache?