com.twitter.common.memcached
Class Memcached

java.lang.Object
  extended by com.twitter.common.memcached.Memcached

public class Memcached
extends Object

Helper class for creating a memcached client.


Constructor Summary
Memcached()
           
 
Method Summary
static net.spy.memcached.MemcachedClient newKestrelClient(List<String> servers)
          Creates a new memcached client for use as an interface to a kestrel queue.
static net.spy.memcached.MemcachedClient newMemcachedClient(List<String> servers)
          Creates a new generic memcached client that uses daemon threads for IO and the binary protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Memcached

public Memcached()
Method Detail

newKestrelClient

public static net.spy.memcached.MemcachedClient newKestrelClient(List<String> servers)
Creates a new memcached client for use as an interface to a kestrel queue.

Parameters:
servers - The kestrel servers to use.
Returns:
A memcached client.

newMemcachedClient

public static net.spy.memcached.MemcachedClient newMemcachedClient(List<String> servers)
Creates a new generic memcached client that uses daemon threads for IO and the binary protocol.

Parameters:
servers - The memcached servers to use.
Returns:
A memcached client.