Memcache – Notes

1. Memcache is a in memory cache used by many web sites to boost performance.

2. memcache url –

3. memcache java clinet –

4. How to start memcache : ~ $ /perflab/memcached-1.4.1/memcached -p <portnumber> -u <username> -m <memory capacity in GB>

5. To connect to memcache and issue commands :

a. $ telnet <port number> ( to connect to memcache from the host machine )

b. stats ( gives stats )/ flush_all ( flushes all data in memcache )

6. Simple Memcache Client code snippet  : This creates a client which can be used to call memcache commands and get and set info

MemcachedClient c= new MemcachedClient(new InetSocketAddress(“”, 10151));

references :


Leave a comment

Filed under DB, j2ee, Java

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s