Delete APIs

remove

Removes from the cache​ by providing the key.

CacheApi.remove(cacheName, key) 

Parameters

cacheName: name of the cache
key:       name of the identifier

Returns

 result object

removeNoLock

Removes from the cache without locking it. The key is provided as an argument​

Cache.removeNoLock(cacheName, key)

Parameters

cacheName: name of the cache
key:       the identifier

Returns

A Result object indicating the success or failure of the operation.

clear

Clear all entries from the cache.

CacheApi.clear(cacheName)

Parameters

cacheName

Returns

A Result object indicating the success or failure of the operation.

Last updated