Installing memcached client
We need a client library to connect to the memcached server and store and retrieve data. In this section we will install memcached clients for Java, PHP, and Python.
Memcached client in Java
The best available client in Java is named java_memcached
, and was created by Greg Whalin. It is currently hosted on GitHub at http://github.com/gwhalin/Memcached-Java-Client. Download the latest version of this library from http://github.com/gwhalin/Memcached-Java-Client/downloads. The most current version at the time of writing this chapter is 2.5.0. Unzip the distribution to the directory of choice. Copy the JAR file named java_memcached-release_2.5.0.jar
to a folder that is on your classpath. You are now ready to start using this library to interact with our memcached server.
Memcached client in PHP
There are two available clients in PHP: pecl/memcache
(http://pecl.php.net/package/memcache) and pecl/memcached
(http://pecl.php.net/package/memcached). The first, pecl/memcache...