CachePut
Last updated
Was this helpful?
Last updated
Was this helpful?
Get an item from the cache.
If the item is not found, the default value will be returned if provided, else null will be returned. By default, the {@code cacheName} is set to {@code default}.
id
any
true
The cache id to store
value
any
true
The value to store in the cache
timespan
any
false
The duration for the cache to expire in seconds
idleTime
any
false
The duration for the cache to expire after last access in seconds
cacheName
string
false
The cache name to retrieve the id from, defaults to {@code default}
default