Type | Name and description |
---|---|
java.lang.String |
cacheDir |
SnapshotPolicy |
snapshotPolicy |
Constructor and description |
---|
LocalFileCache
() |
LocalFileCache
(java.lang.String cacheDir, SnapshotPolicy snapshotPolicy) |
Type Params | Return Type | Name and description |
---|---|---|
|
org.springframework.cache.Cache$ValueWrapper |
get(ApplicationID appId, java.lang.String cubeName) Checks for the requested cube in the local file cache |
|
java.lang.String |
getCacheDir() Returns a String specifying the directory used to store local files |
|
SnapshotPolicy |
getSnapshotPolicy() Returns the SnapshotPolicy being used by this file cache |
|
void |
init() |
|
boolean |
isEnabled() Returns true if local file caching is enabled; otherwise, false |
|
void |
put(ApplicationID appId, java.lang.String cubeName, NCube ncube) Stores the NCube bytes, if it exists; otherwise, an empty file is persisted |
|
void |
setCacheDir(java.lang.String cacheDir) Allows the local cache directory to be specified |
|
void |
setSnapshotPolicy(SnapshotPolicy snapshotPolicy) Sets the SnapShotPolicy to be used by this file cache |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Checks for the requested cube in the local file cache
appId
- ApplicationID containing the cubecubeName
- name of NCubeReturns a String specifying the directory used to store local files
Returns the SnapshotPolicy being used by this file cache
Returns true if local file caching is enabled; otherwise, false
Stores the NCube bytes, if it exists; otherwise, an empty file is persisted
appId
- ApplicationID to use when storing the filecubeName
- String containing name of cubencube
- An instance of NCube, if the cube exists; null, if cube does not existAllows the local cache directory to be specified
Sets the SnapShotPolicy to be used by this file cache
Groovy Documentation