CachePut

Stores an object in the cache, with a life time and a idle time.

Returns: void

Usage

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

Arguments

Argument Description
id
(string, required)

The id for the cache object.

value
(object, required)

The value of the object.

timeSpan
(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
(timespan, 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.

cacheName
(string, optional)

definition of the cache used by name, when not set the "default Object Cache" defined in Lucee Administrator is used instead.

Examples

There are currently no examples for this function.

See also