public interface ArcacheReadWriteInterface
| Modifier and Type | Method and Description |
|---|---|
Future<CacheGetResult> |
asyncGetCacheObject(String key)
Allow async get
|
Future<Boolean> |
asyncSet(String key,
Object value) |
Future<Boolean> |
asyncSet(String key,
Object value,
String[] invalidationKeys) |
Object |
get(String key)
This is the most basic get method.
|
Object |
get(String key,
long timeoutMillis) |
CacheGetResult |
getCacheObject(String key) |
CacheGetResult |
getCacheObject(String key,
long timeoutMillis)
This method never throws an exception, in case of an exception it is returned
inside the returned object
|
void |
set(String key,
Object value)
Almacena un valor, como timeout utiliza el default, en caso de falla
retornarĂ¡ una exepcion
|
void |
set(String key,
Object value,
String[] invalidationKeys)
Almacena un valor y define las claves de invalidacion
|
Object get(String key) throws TimeoutException, Exception
key - TimeoutExceptionExceptionObject get(String key, long timeoutMillis) throws TimeoutException, Exception
TimeoutExceptionExceptionCacheGetResult getCacheObject(String key)
key - CacheGetResult getCacheObject(String key, long timeoutMillis)
key - timeoutMillis - Future<CacheGetResult> asyncGetCacheObject(String key)
key - void set(String key, Object value) throws TimeoutException, Exception
TimeoutExceptionExceptionvoid set(String key, Object value, String[] invalidationKeys) throws TimeoutException, Exception
TimeoutExceptionExceptionCopyright © 2019. All rights reserved.