cache feature

Cache Feature

Version: 17.07

Supported Since: 17.01

Cache Feature

Cache Feature can be used to perform any type of cache related operations such as put, get and delete. All the caches are stored as a key-value pair.

APIs Java Docs

Create

Parameters
String resourceName

Name for the cache to be created

int heapSize

Configures the maximum heap size allowed for the cache in megabytes

long expirationTime

Configures the expiration time allowed for the cache in minutes

Class<K> keyType

Class type of the key

Class<V> valueType

Class type of the value

Returns
XCache

XCache object, which can be used for many cache operations such as get, put, getAndPut, remove, getAndRemove, getCacheName and containsKey

This API can be used to perform database insert, update and delete operations

Remove

Parameters
XCache cache

Cache object which needes to be removed from the pool

Returns
void

This API can be used to perform database read operations

In this topic
In this topic
Contact Us