gemcached is a memcached server written in Java that understands memcached's ASCII protocol and translates it into GemFire operations.

At startup, gemcached server starts an embedded GemFire cache. memcached clients can then talk with the gemcached server, which will store data in GemFire. Using a gemcached server allows clients written in a variety of languages to communicate with a GemFire cache server. Since these are memcached clients they will not be able to GemFire's client side features like continuous queries and register interest (Please use GemFire's Java and .NET clients for these features). However all server side (peer-to-peer) features of GemFire such as horizontal scaling using data partitioning and multi-site WAN replication are available.

Same as system requirements for GemFire.

How to start a standalone gemcached server:

1. Make sure that gemfire.jar and gemcached-0.1-RELEASE.jar are added to your CLASSPATH.
2. Start the gemcached server using the following command:
java com.gemstone.memcached.GemFireMemcachedServer -port=[port]
where port is the port where memcached clients can connect. (If port is not specified, then 11212 is used by default).

How to embed the gemcached server in your application:

In your application, you can start the gemcached server as follows:

GemFireMemcachedServer gemcached = new GemFireMemcachedServer(5555/*port*/);

Configuring GemFire:

By default gemcached creates a region named "gemcached" which is a RegionShortcut.PARTITION region. You can override the default configuration for the gemcachedregion by adding a cache.xml with the desired configuration to the working directory where you are running gemcached server. You can also override GemFire's default configuration by adding a modified file to the gemcached server working directory.

In 0.2, you get the following:

  • Added support for client flags for an operation
  • Added support for quit command
  • Hostname shown when gemcached server starts
Add a Comment
Report a Bug