Search:

Search all manuals
Search this manual
Manual
Membase and Java Tutorial
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Membase and Java Tutorial
Chapter Sections
Chapters

2. Installation

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.

  1. Download spymemcached-2.6.jar

  2. 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