public interface OCommandCache
Modifier and Type | Interface and Description |
---|---|
static class |
OCommandCache.STRATEGY |
Modifier and Type | Method and Description |
---|---|
OCommandCache |
clear()
Remove all results from the cache.
|
OCommandCache |
disable()
Disables cache.
|
OCommandCache |
enable()
Enables cache.
|
Object |
get(OSecurityUser iUser,
String queryText,
int iLimit)
Looks up for query result in cache.
|
OCommandCache.STRATEGY |
getEvictStrategy() |
int |
getMaxResultsetSize() |
void |
invalidateResultsOfCluster(String iCluster)
Invalidates results of given cluster.
|
boolean |
isEnabled()
Tells whether cache is enabled.
|
void |
put(OSecurityUser iUser,
String queryText,
Object iResult,
int iLimit,
Set<String> iInvolvedClusters,
long iExecutionTime)
Pushes record to cache.
|
void |
remove(OSecurityUser iUser,
String queryText,
int iLimit)
Removes result of query.
|
void |
shutdown()
All operations running at cache destruction stage.
|
int |
size()
Total number of stored queries.
|
void |
startup()
All operations running at cache initialization stage.
|
void startup()
void shutdown()
boolean isEnabled()
true
if cache enabled at call time, otherwise - false
OCommandCache enable()
OCommandCache disable()
Object get(OSecurityUser iUser, String queryText, int iLimit)
void put(OSecurityUser iUser, String queryText, Object iResult, int iLimit, Set<String> iInvolvedClusters, long iExecutionTime)
void remove(OSecurityUser iUser, String queryText, int iLimit)
OCommandCache clear()
int size()
void invalidateResultsOfCluster(String iCluster)
iCluster
- Cluster nameint getMaxResultsetSize()
OCommandCache.STRATEGY getEvictStrategy()
Copyright © 2009–2020 OrientDB. All rights reserved.