Railo 4.2 Reference
Choose a function:

Function CACHEPUT

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

Beispiel

cacheput(string id,object value,[timespan timeSpan,[timespan idleTime,[string cacheName]]]):void

Argumente

Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Beschreibung
id string  Yes The id for the cache object.  
value object  Yes The value of the object.  
timeSpan timespan  No 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  No 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  No definition of the cache used by name, when not set the "default Object Cache" defined in Railo Administrator is used instead.