All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.spy.memcached.CacheMap Maven / Gradle / Ivy

The newest version!
package net.spy.memcached;

/**
 * A Map interface to memcached.
 *
 * 

* Do note that nothing that iterates over the map will work (such is * memcached). All iteration mechanisms will return empty iterators and * such. *

*/ public class CacheMap extends BaseCacheMap { /** * Construct a CacheMap over the given MemcachedClient. * * @param c the client * @param expiration the expiration to set for keys written to the cache * @param prefix a prefix used to make keys in this map unique */ public CacheMap(MemcachedClientIF c, int expiration, String prefix) { super(c, expiration, prefix, c.getTranscoder()); } /** * Construct a CacheMap over the given MemcachedClient with no expiration. * *

* Keys written into this Map will only expire when the LRU pushes them * out. *

* * @param c the client * @param prefix a prefix used to make keys in this map unique */ public CacheMap(MemcachedClientIF c, String prefix) { this(c, 0, prefix); } }