...
Specifying value as null removes object from cache.
Example
How to store an object in cache
Code Block | ||
---|---|---|
| ||
var id = 1; $Cache.Set("myObject:" + id, { Name : 'Madonna' }); |
Example
How to store an object in cache with duration
Code Block | ||
---|---|---|
| ||
var id = 1; $Cache.Set("myObject:" + id, { Name : 'Madonna' }, "12:00:00"); |