Basic JS Caching
Use the CCache
instance directly for Convenience.
Or, Create a new instance of the cacher using the CreateCache()
method.
CCache.Get('x');
const anotherCacher = CreateCache(); //Different caches
const yetAnother = CreateCache();
Add/Update the value to cache using the key
Get the value stored in the cache using the key. Return
defaultValue
if not found.
Check if the cache contains any entry matching with the key
Remove the data from cache associated with the key
Clear all data from the Cache.