Skip to content

Get

Retrieves a cached value by its key, if it exists.

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

Parameters

string key
    The key of the value to retrieve.

Returns

The cached value if found; otherwise, null.

Remarks

The key name can include a ":" qualifier if needed.

Getting a cached object:

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

See Also