public class MemCachedKeyValueStore extends java.lang.Object implements KeyValueStore
Constructor and Description |
---|
MemCachedKeyValueStore(KeyValueStore keyValueStore,
int cacheSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String key) |
int |
count() |
boolean |
deleteAll() |
boolean |
deleteValue(java.lang.String key) |
java.lang.String |
getStoreName() |
java.io.InputStream |
getStream(java.lang.String key) |
java.lang.String |
getValue(java.lang.String key) |
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
boolean |
saveStream(java.lang.String key,
java.io.InputStream stream) |
boolean |
saveValue(java.lang.String key,
java.lang.String value) |
public MemCachedKeyValueStore(KeyValueStore keyValueStore, int cacheSize)
public boolean contains(java.lang.String key)
contains
in interface KeyValueStore
public java.lang.String getValue(java.lang.String key)
getValue
in interface KeyValueStore
public java.io.InputStream getStream(java.lang.String key)
getStream
in interface KeyValueStore
public boolean saveValue(java.lang.String key, java.lang.String value)
saveValue
in interface KeyValueStore
public boolean saveStream(java.lang.String key, java.io.InputStream stream) throws java.io.IOException
saveStream
in interface KeyValueStore
java.io.IOException
public boolean deleteValue(java.lang.String key)
deleteValue
in interface KeyValueStore
public boolean deleteAll()
deleteAll
in interface KeyValueStore
public java.util.Set<java.lang.String> keySet()
keySet
in interface KeyValueStore
public int count()
count
in interface KeyValueStore
public boolean isEmpty()
isEmpty
in interface KeyValueStore
public java.lang.String getStoreName()
getStoreName
in interface KeyValueStore