T - The type of values this cache stores.U - The type of values this cache returns.public interface IRedisCache<T,U>
| Modifier and Type | Method and Description |
|---|---|
Boolean |
exists(String key)
Does the key exist in the cache?
|
U |
get(String key)
Get the key from the cache.
|
void |
remove(String key)
Remove the key from the cache.
|
Boolean |
removeValue(String key,
T value)
Remove the value from the cache.
|
void |
set(String key,
T value,
Object... arguments)
Set the (key, value, ...) tuple in the cache.
|
String |
type()
Return the type identifier of this cache.
|
Boolean exists(String key)
key - The key to check.void remove(String key)
key - The key to remove.void set(String key, T value, Object... arguments)
key - The key to store.value - The value to store.arguments - Varargs with the rest of the tuple particular for this cache.U get(String key)
key - The key to getBoolean removeValue(String key, T value)
key - The key to remove from.value - The value to remove in key.String type()
Copyright © 2015. All rights reserved.