Table of Contents
The spymemcached library provides an interface to
both Membase and Memcached clients using a consistent interface. The
interface between your Java application and your Membase or
Memcached servers is provided through the instantiation of a single
object class, MemcachedClient.
Creating a new object based on this class opens the connection to each configured server and handles all the communication with the server(s) when setting, retrieving and updating values. A number of different methods are available for creating the object specifying the connection address and methods:
Using a single internet hostname and port number combination. For more information, see Section 1.2, “Connecting using Hostname and Port”.
Using the binary protocol, which provides more efficient communication process. See Section 1.3, “Connecting using Hostname and Port with Binary Protocol”.