If you are using Maven, download the spymemcached JAR file file and install it into your Maven repository. If you want to use another IDE, download the library and put it into your classpath or build path.
We will use Maven in this tutorial, but it is in no way a requirement for using the library or interfacing with Membase. It is simply a convenience for keeping this tutorial as easy to follow as possible. The following is a recent version of spymemcached that includes some very new APIs that will be discussed later in this tutorial.
Execute the Maven command to save the jar file into your local maven repository:
$ mvn install:install-file -Dfile=memcached-2.6.jar \ -DgroupId=spy -DartifactId=spymemcached \ -Dversion=2.6 \ -Dpackaging=jar