Memcache – Notes

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

2. memcache url –

3. memcache java clinet – http://dustin.github.com/java-memcached-client/

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 127.0.0.1 <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(“perftest10.qa.linkedin.com”, 10151));

references : http://lzone.de/articles/memcached.htm

Advertisements

Leave a comment

Filed under DB, j2ee, Java

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s