Skip to content

Get

Returns cached value by specified key if found.

1
$Cache.Get(key: string):string

Parameters

string key
    Key of value

Returns

Returns value if found, otherwise null.

Remarks

Key name can be separated with ":" qualifier if required.

How to get a cached object

1
2
var id = 1;
var myObject = $Cache.Get('myObject:' + id);

See Also