public class ResultCacheImpl extends Object implements ResultCache
Constructor and Description |
---|
ResultCacheImpl(com.kony.mobilefabric.cache.director.CacheDirector director) |
Modifier and Type | Method and Description |
---|---|
static ResultCacheImpl |
getInstance()
Deprecated.
|
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 Fabric 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 Fabric 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.
|
static void |
setInstance(ResultCacheImpl resultCache)
Deprecated.
|
public ResultCacheImpl(com.kony.mobilefabric.cache.director.CacheDirector director)
@Deprecated public static ResultCacheImpl getInstance()
@Deprecated public static void setInstance(ResultCacheImpl resultCache)
@Deprecated public void insertIntoCache(String key, Object value)
insertIntoCache
in interface ResultCache
key
- The key for the datavalue
- The datainsertIntoCache(String, byte[])
,
insertIntoCache(String, String)
@Deprecated public void insertIntoCache(String key, Object value, int cacheExpiryInSeconds)
insertIntoCache
in interface ResultCache
key
- The key for the datavalue
- The datacacheExpiryInSeconds
- The duration for which to cache in secondsinsertIntoCache(String, byte[], int)
,
insertIntoCache(String, String, int)
public Object retrieveFromCache(String key)
retrieveFromCache
in interface ResultCache
key
- The key for the datapublic void removeFromCache(String key)
removeFromCache
in interface ResultCache
key
- The key for the datapublic void insertIntoCache(String key, String value)
insertIntoCache
in interface ResultCache
key
- The key for the datavalue
- The datapublic void insertIntoCache(String key, String value, int cacheExpiryInSeconds)
insertIntoCache
in interface ResultCache
key
- The key for the datavalue
- The datacacheExpiryInSeconds
- The duration for which to cache in secondspublic void insertIntoCache(String key, byte[] value)
insertIntoCache
in interface ResultCache
key
- The key for the datavalue
- The byte[] datapublic void insertIntoCache(String key, byte[] value, int cacheExpiryInSeconds)
insertIntoCache
in interface ResultCache
key
- The key for the datavalue
- The byte[] datacacheExpiryInSeconds
- The duration for which to cache in secondsCopyright © 2019. All rights reserved.