remove
  • 30 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

remove

  • Dark
    Light
  • PDF

Article summary

Description

Removes one or more items from cache.


Input Parameters

NameTypeRequiredDescription
keysTextYesComma-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");
// remove two items from cache
cache.remove("person, score");

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.


What's Next