- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Description
Removes all items from cache.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
--- | --- | --- | --- |
Returns
No return value.
Examples
// remove all items from cache
cache.clear();
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.