clear
  • 26 Sep 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

clear

  • Dark
    Light
  • PDF

Article summary

Description

Removes all items from cache.


Input Parameters

NameTypeRequiredDescription
------------

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.


What's Next