|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.thimbleware.jmemcached.LRUCacheStorageDelegate
public final class LRUCacheStorageDelegate
A delegate around the internal thread-safe LRUCache implementation.
| Constructor Summary | |
|---|---|
LRUCacheStorageDelegate(int maxSize,
long maxBytes,
long ceilingSize)
|
|
| Method Summary | |
|---|---|
long |
count()
|
void |
flushAll()
Flush all entries from the cache |
MCElement |
get(java.lang.String keystring)
Retrieve an element from the cache. |
java.util.Set<java.lang.String> |
keys()
|
long |
maxSize()
|
void |
put(java.lang.String keystring,
MCElement el)
Put an entry into the cache or replace an existing entry. |
void |
remove(java.lang.String keystring)
Remove an entry from the cache |
long |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LRUCacheStorageDelegate(int maxSize,
long maxBytes,
long ceilingSize)
| Method Detail |
|---|
public MCElement get(java.lang.String keystring)
CacheStorage
get in interface CacheStoragekeystring - the key identifying the entry
public void put(java.lang.String keystring,
MCElement el)
CacheStorage
put in interface CacheStoragekeystring - the key identifying the entryel - the element to place in the cachepublic void remove(java.lang.String keystring)
CacheStorage
remove in interface CacheStoragekeystring - the key to lookuppublic java.util.Set<java.lang.String> keys()
keys in interface CacheStoragepublic long size()
size in interface CacheStoragepublic void flushAll()
CacheStorage
flushAll in interface CacheStoragepublic long count()
count in interface CacheStoragepublic long maxSize()
maxSize in interface CacheStorage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||