remove

Prev Next

Description

Removes one or more items from cache.


Input Parameters

Name Type Required Description
keys Text Yes Comma-seperated list of item keys to remove from cache

Returns

No return value.


Examples

// remove item from cache whose key is 'person'
cache.remove("person");
JavaScript
// remove two items from cache
cache.remove("person, score");
JavaScript

Remarks

Use this function when you want to remove one or more items from cache.

Removing items from cache is not typically necessary since the cache is fully destroyed when your app is finished running. However, this can be useful if the host device has a limited memory capacity.