com.caucho.memcached
Class MemcachedCacheEngine

java.lang.Object
  extended by com.caucho.server.distcache.AbstractCacheEngine
      extended by com.caucho.memcached.MemcachedCacheEngine
All Implemented Interfaces:
CacheEngine

public class MemcachedCacheEngine
extends AbstractCacheEngine

Custom serialization for the cache


Method Summary
 MnodeEntry get(DistCacheEntry entry, CacheConfig config)
           
 boolean isLocalExpired(CacheConfig config, HashKey key, MnodeEntry mnodeEntry, long now)
           
 void put(HashKey hashKey, MnodeUpdate mnodeUpdate, MnodeEntry mnodeValue)
           
 void remove(HashKey hashKey, MnodeUpdate mnodeUpdate, MnodeEntry mnodeEntry)
           
 
Methods inherited from class com.caucho.server.distcache.AbstractCacheEngine
compareAndPut, getAndPut, initCache, loadData, start, updateTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isLocalExpired

public boolean isLocalExpired(CacheConfig config,
                              HashKey key,
                              MnodeEntry mnodeEntry,
                              long now)
Specified by:
isLocalExpired in interface CacheEngine
Overrides:
isLocalExpired in class AbstractCacheEngine

get

public MnodeEntry get(DistCacheEntry entry,
                      CacheConfig config)
Specified by:
get in interface CacheEngine
Overrides:
get in class AbstractCacheEngine

put

public void put(HashKey hashKey,
                MnodeUpdate mnodeUpdate,
                MnodeEntry mnodeValue)
Specified by:
put in interface CacheEngine
Overrides:
put in class AbstractCacheEngine

remove

public void remove(HashKey hashKey,
                   MnodeUpdate mnodeUpdate,
                   MnodeEntry mnodeEntry)
Specified by:
remove in interface CacheEngine
Overrides:
remove in class AbstractCacheEngine