Set¶
Stores an object in cache.
1 |
|
Stores an object in cache with duration limit
1 |
|
Parameters¶
string key
Key of value
object value
value to be stored
string duration
Expiration duration. Optional.
Remarks¶
If duration is not specified, object is stored as indefinitely until cache is cleared.
Duration can be specified in "day.hh:mm:ss" format.
Specifying value as null removes object from cache.
How to store an object in cache¶
1 2 3 4 |
|
If duration is not specified, object is stored as indefinitely until cache is cleared.
Duration can be specified in "day.hh:mm:ss" format.
Specifying value as null removes object from cache.
How to store an object in cache with duration¶
1 2 3 4 |
|