CachePut

Description

Stores an object in the cache.

Returns

Nothing

Function syntax

CachePut(id, value[, timeSpan[, idleTime]])

History

ColdFusion 9: Added the function.

Parameters

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.