public interface ResultCache
ResultCacheImpl
Modifier and Type | Method and Description |
---|---|
void |
insertIntoCache(String key,
byte[] value)
Inserts the data into cache for caching for a default large duration.
|
void |
insertIntoCache(String key,
byte[] value,
int cacheExpiryInSeconds)
Inserts the data into cache for caching for specified duration.
|
void |
insertIntoCache(String key,
Object value)
Deprecated.
As of Foundry V8 SP4 FP2 (8.4.2) release, do not use this method
for insertion of custom objects (instances of Java Classes
uploaded as part of custom code) into the cache. If you need to
insert custom objects, convert custom object into byte[] /
String and use other version of insertIntoCache method with
corresponding type.
|
void |
insertIntoCache(String key,
Object value,
int cacheExpiryInSeconds)
Deprecated.
As of Foundry V8 SP4 FP2 (8.4.2) release, do not use this method
for insertion of custom objects (instances of Java Classes
uploaded as part of custom code) into the cache. If you need to
insert custom objects, convert custom object into byte[] /
String and use other version of insertIntoCache method with
corresponding type.
|
void |
insertIntoCache(String key,
String value)
Inserts the data into cache for caching for a default large duration.
|
void |
insertIntoCache(String key,
String value,
int cacheExpiryInSeconds)
Inserts the data into cache for caching for specified duration.
|
void |
removeFromCache(String key)
Removes the data corresponding to the key from the cache.
|
Object |
retrieveFromCache(String key)
Retrieves the data corresponding to the key from the cache.
|
@Deprecated void insertIntoCache(String key, Object value)
key
- The key for the datavalue
- The datainsertIntoCache(String, byte[])
,
insertIntoCache(String, String)
@Deprecated void insertIntoCache(String key, Object value, int cacheExpiryInSeconds)
key
- The key for the datavalue
- The datacacheExpiryInSeconds
- The duration for which to cache in secondsinsertIntoCache(String, byte[], int)
,
insertIntoCache(String, String, int)
Object retrieveFromCache(String key)
key
- The key for the datavoid removeFromCache(String key)
key
- The key for the datavoid insertIntoCache(String key, String value)
key
- The key for the datavalue
- The datavoid insertIntoCache(String key, String value, int cacheExpiryInSeconds)
key
- The key for the datavalue
- The datacacheExpiryInSeconds
- The duration for which to cache in secondsvoid insertIntoCache(String key, byte[] value)
key
- The key for the datavalue
- The datavoid insertIntoCache(String key, byte[] value, int cacheExpiryInSeconds)
key
- The key for the datavalue
- The datacacheExpiryInSeconds
- The duration for which to cache in secondsCopyright © 2019. All rights reserved.