public class ArcacheInMemoryClient extends Object implements ArcacheBackendClient
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,MemoryObject> |
storage |
| Constructor and Description |
|---|
ArcacheInMemoryClient() |
| Modifier and Type | Method and Description |
|---|---|
Future<Object> |
asyncGet(String key) |
Future<Boolean> |
asyncSet(String key,
int ttlSeconds,
Object value) |
void |
clear() |
protected Object |
deserialize(byte[] in)
Get the object represented by the given serialized bytes.
|
Object |
get(String key) |
protected byte[] |
serialize(Object o)
Get the bytes representing the given serialized object.
|
boolean |
set(String key,
int ttlSeconds,
Object value) |
protected ConcurrentHashMap<String,MemoryObject> storage
public Future<Boolean> asyncSet(String key, int ttlSeconds, Object value)
asyncSet in interface ArcacheBackendClientpublic Future<Object> asyncGet(String key)
asyncGet in interface ArcacheBackendClientpublic void clear()
protected byte[] serialize(Object o)
protected Object deserialize(byte[] in)
Copyright © 2019. All rights reserved.