| Constructor and Description |
|---|
HazlecastCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the complete cache by invalidating all entries
|
<T> T |
get(String key)
Retrieves an object from the caches and converts it to
a given class
|
ConcurrentMap<String,Object> |
getAll() |
Map<String,Object> |
getStats()
Retrieves the cache statistics
|
void |
put(String key,
Object value)
Adds a value to cache with a given key overwriting and existing value
|
void |
putAll(Map<String,Object> map)
Adds a complete map of objects to the cache
|
void |
remove(String key)
Removes a value with a given key from the cache
|
long |
size()
Returns the size (number of elements) of cached values
|
public void put(String key, Object value)
Cachepublic void remove(String key)
Cachepublic long size()
Cachepublic void clear()
Cachepublic <T> T get(String key)
Cachepublic void putAll(Map<String,Object> map)
Cachepublic ConcurrentMap<String,Object> getAll()
Copyright © 2016. All rights reserved.