public final class FileCache extends Object implements ICache
Constructor and Description |
---|
FileCache(String cachePath)
Creates new instance of FileCache 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 FileCache(String cachePath)
cachePath
- Relative or absolute path where document cache will be storedpublic Object tryGetValue(String key)
tryGetValue
in interface ICache
key
- A key identifying the requested entry.