public class MemoryCache extends Object implements ICache
Constructor and Description |
---|
MemoryCache()
Creates new instance of MemoryCache class
|
Modifier and Type | Method and Description |
---|---|
Iterable<String> |
getKeys(String filter)
Returns all keys matching filter.
|
void |
set(String key,
Object value)
Inserts a cache entry into the cache.
|
Object |
tryGetValue(String key)
Gets the entry associated with this key if present.
|
public Object tryGetValue(String key)
tryGetValue
in interface ICache
key
- A key identifying the requested entry.Copyright © 2022. All rights reserved.