public final class MemcachedCache<K,V> extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAvailability(String key) |
void |
close() |
static <K,V> MemcachedCache<K,V> |
create(String host,
int port,
String prefix,
com.indeed.util.serialization.Stringifier<K> keyStringifier,
com.indeed.util.serialization.Serializer<V> valueSerializer) |
void |
delete(K key) |
Map<K,V> |
getFromCache(Collection<K> keys,
CacheStats cacheStats) |
Map<String,String> |
getStats() |
void |
putInCache(K key,
V value,
boolean addOnly) |
void |
putInCache(K key,
V value,
boolean addOnly,
int expirationTime) |
void |
shutdown() |
String |
toString() |
public static <K,V> MemcachedCache<K,V> create(String host, int port, String prefix, com.indeed.util.serialization.Stringifier<K> keyStringifier, com.indeed.util.serialization.Serializer<V> valueSerializer) throws IOException
IOExceptionpublic Map<K,V> getFromCache(Collection<K> keys, CacheStats cacheStats)
public void delete(K key)
public void shutdown()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean checkAvailability(String key)
Copyright © 2017. All Rights Reserved.