Description
Stores an object in the cache.
Returns
Nothing
CachePut(id, value, [timeSpan], [idleTime], [region], [throwOnError])
cfcache, CacheGet, CacheGetAllIds, CacheGetProperties, CacheRemove, CacheSetProperties
ColdFusion 10: Added the region and throwOnError parameters.ColdFusion 9: Added the function.
Parameter |
Description |
---|---|
id |
The ID for the cache object. |
value |
The value of the object. Can be any data type supported by ColdFusion |
timeSpan |
(Optional) The interval until the object is flushed from the cache, as a decimal number of days. One way to set the value is to use the return value from the CreateTimeSpan function. The default is to not time out the object. |
idleTime |
(Optional) A decimal number of days after which the object is flushed from the cache if it is not accessed during that time. One way to set the value is to use the return value from the CreateTimeSpan function. |
region |
Optional. Specifies the cache region where you can place the cache object. |
throwOnError |
Optional. If True and if regen does not exist, throws an error.
|