Set¶
Stores an object in the cache.
1 |
|
Stores an object in the cache with a specified expiration duration.
1 |
|
Parameters¶
string key
The key to associate with the value.
object value
The value to be stored.
string duration
The expiration duration in "day.hh:mm:ss" format. Optional.
Remarks¶
If a duration is not specified, the object is stored indefinitely until the cache is cleared.
A duration can be specified in "day.hh:mm:ss" format.
Specifying null
as the value removes the object from the cache.
Storing an object in the cache:¶
1 2 3 4 |
|
If a duration is not specified, the object is stored indefinitely until the cache is cleared.
Specifying null
as the value removes the object from the cache.
Storing an object in the cache with a duration:¶
1 2 3 4 |
|