com.caucho.server.distcache
Interface CacheEngine
- All Known Implementing Classes:
- AbstractCacheEngine, ClusterCacheEngine, MemcachedCacheEngine
public interface CacheEngine
Manages the distributed cache
|
Method Summary |
HashKey |
compareAndPut(DistCacheEntry entry,
HashKey testValue,
MnodeUpdate mnodeUpdate,
java.lang.Object value,
CacheConfig config)
|
MnodeEntry |
get(DistCacheEntry entry,
CacheConfig config)
|
HashKey |
getAndPut(DistCacheEntry entry,
MnodeUpdate mnodeUpdate,
java.lang.Object value,
long leaseTimeout,
int leaseOwner)
|
void |
initCache(CacheImpl cache)
|
boolean |
isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now)
|
boolean |
loadData(HashKey valueKey,
int flags)
|
void |
put(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeValue)
|
void |
remove(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeEntry)
|
void |
start()
Starts the service |
void |
updateTime(HashKey key,
MnodeEntry mnodeValue)
|
start
void start()
- Starts the service
initCache
void initCache(CacheImpl cache)
isLocalExpired
boolean isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now)
get
MnodeEntry get(DistCacheEntry entry,
CacheConfig config)
loadData
boolean loadData(HashKey valueKey,
int flags)
put
void put(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeValue)
updateTime
void updateTime(HashKey key,
MnodeEntry mnodeValue)
remove
void remove(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeEntry)
getAndPut
HashKey getAndPut(DistCacheEntry entry,
MnodeUpdate mnodeUpdate,
java.lang.Object value,
long leaseTimeout,
int leaseOwner)
compareAndPut
HashKey compareAndPut(DistCacheEntry entry,
HashKey testValue,
MnodeUpdate mnodeUpdate,
java.lang.Object value,
CacheConfig config)