clear

Prev Next

Description

Removes all items from cache.


Input Parameters

Name Type Required Description
--- --- --- ---

Returns

No return value.


Examples

// remove all items from cache
cache.clear();
JavaScript

Remarks

Use this function when you want to remove all 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.