$Cache.Get

Overview

Returns cached value by specified key if found.

string $Cache.Get(key: string)

Arguments

string key

Key of value

Returns

Returns value if found, otherwise null.

Remarks

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

Example

How to get a cached object

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

See Also

Copyright © 2010 - 2023 Emakin. All rights reserved.