public class MemcachedWrapper extends AbstractBlockingCache
Modifier and Type | Class and Description |
---|---|
protected static class |
MemcachedWrapper.CacheEntriesWithKeys
Cache entry holding key-value pair.
|
protected class |
MemcachedWrapper.EmptyUncacheableEntry
Entry which we return if there are are more keys with the same hash.
|
Constructor and Description |
---|
MemcachedWrapper(CacheModule cacheModule,
CacheMonitor cacheMonitor,
net.spy.memcached.MemcachedClientIF client,
Integer blockingTimeout,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected String |
createHash(Object originalKey) |
Collection<Object> |
getKeys() |
Object |
getQuiet(Object key) |
int |
getSize() |
Map<SocketAddress,Map<String,String>> |
getStats() |
protected void |
putQuiet(Object key,
Object value,
int timeToLiveInSeconds) |
void |
remove(Object key) |
protected void |
shutdown() |
get, getBlockingTimeout, getName, hasElement, put, put, unlock
@Inject public MemcachedWrapper(CacheModule cacheModule, CacheMonitor cacheMonitor, net.spy.memcached.MemcachedClientIF client, Integer blockingTimeout, String name)
public Object getQuiet(Object key)
getQuiet
in interface Cache
getQuiet
in class AbstractListeningCacheWrapper
protected void putQuiet(Object key, Object value, int timeToLiveInSeconds)
putQuiet
in class AbstractBlockingCache
public void remove(Object key)
remove
in interface Cache
remove
in class AbstractListeningCacheWrapper
public void clear()
clear
in interface Cache
clear
in class AbstractListeningCacheWrapper
public int getSize()
getSize
in interface Cache
getSize
in class AbstractListeningCacheWrapper
public Collection<Object> getKeys()
public Map<SocketAddress,Map<String,String>> getStats()
protected void shutdown()
Copyright © 2020 Magnolia International Ltd.. All rights reserved.