com.caucho.server.distcache
Interface CacheEngine
- All Known Implementing Classes:
- AbstractCacheEngine, MemcachedCacheEngine
public interface CacheEngine
Manages the distributed cache
Method Summary |
boolean |
compareAndPut(DistCacheEntry entry,
long testValue,
MnodeUpdate update,
long valueDataId)
|
MnodeValue |
get(DistCacheEntry entry)
|
java.io.InputStream |
getAndPut(DistCacheEntry entry,
MnodeUpdate mnodeValue,
long valueDataId)
|
int |
getServerIndex()
|
void |
initCache(CacheImpl cache)
|
boolean |
isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now)
|
void |
notifyLease(HashKey key,
HashKey cacheKey,
int leaseOwner)
|
void |
put(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate,
long valueDataId)
|
void |
remove(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate)
|
void |
start()
Starts the service |
void |
updateTime(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue)
|
start
void start()
- Starts the service
initCache
void initCache(CacheImpl cache)
getServerIndex
int getServerIndex()
isLocalExpired
boolean isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now)
get
MnodeValue get(DistCacheEntry entry)
put
void put(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate,
long valueDataId)
updateTime
void updateTime(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue)
remove
void remove(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate)
getAndPut
java.io.InputStream getAndPut(DistCacheEntry entry,
MnodeUpdate mnodeValue,
long valueDataId)
compareAndPut
boolean compareAndPut(DistCacheEntry entry,
long testValue,
MnodeUpdate update,
long valueDataId)
notifyLease
void notifyLease(HashKey key,
HashKey cacheKey,
int leaseOwner)