Introduction

Prev Next

Description

The cache object provides a way for your scripts to store information while your app is running.


Properties

Below is a list of properties supported by this object.

Name Description UWP Web Avatars
count Returns the total # of items in cache Yes Yes Yes

Functions

Below is a list of functions supported by this object.

Name Description UWP Web Avatars
set Inserts an item into cache Yes Yes Yes
get Returns an item from cache (null if doesn't exist) Yes Yes Yes
remove Removes one or more items from cache Yes Yes Yes
clear Clears all items from cache Yes Yes Yes
exists Returns whether or not an item currently exists in cache Yes Yes Yes

Remarks

The cache object is useful when you need to store information between multiple script executions.

Recall, your scripts will run when a supported action (event) occurs. After your script completes, it will not run again until another supported action occurs. If you want to store information from one execution and retrieve it on subsequent executions, this object provides a way for you to do so.