public final class RedisSortedSetCache extends Object implements IRedisCache<String,Set<String>>
| Constructor and Description |
|---|
RedisSortedSetCache()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
exists(String key)
Does the key exist in the cache?
|
Boolean |
existsValue(String key,
String value) |
Set<String> |
get(String key)
Get the key from the cache.
|
Double |
getScore(String key,
String value) |
void |
remove(String key)
Remove the key from the cache.
|
Boolean |
removeValue(String key,
String value)
Remove the value from the cache.
|
void |
set(String key,
String value,
Object... arguments)
Set the (key, value, ...) tuple in the cache.
|
String |
type()
Return the type identifier of this cache.
|
public RedisSortedSetCache()
public Boolean exists(String key)
IRedisCacheexists in interface IRedisCache<String,Set<String>>key - The key to check.public void remove(String key)
IRedisCacheremove in interface IRedisCache<String,Set<String>>key - The key to remove.public void set(String key, String value, Object... arguments)
IRedisCacheset in interface IRedisCache<String,Set<String>>key - The key to store.value - The value to store.arguments - Varargs with the rest of the tuple particular for this cache.public Set<String> get(String key)
IRedisCacheget in interface IRedisCache<String,Set<String>>key - The key to getpublic Boolean removeValue(String key, String value)
IRedisCacheremoveValue in interface IRedisCache<String,Set<String>>key - The key to remove from.value - The value to remove in key.public String type()
IRedisCachetype in interface IRedisCache<String,Set<String>>Copyright © 2015. All rights reserved.