Search:

Search all manuals
Search this manual
Manual
Membase Client Library: Java
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Membase Client Library: Java
Child Sections
Chapters

Chapter 1. Membase Client Library: Java — Getting Started

Table of Contents

1.1. Connecting to a Membase Bucket
1.2. Connecting using Hostname and Port
1.3. Connecting using Hostname and Port with Binary Protocol
1.4. Connecting using Hostname and Port with SASL
1.5. Shutting down the Connection

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: