CachePut()

Places the object into the cache

Usage

BOOLEAN = CachePut( id, value, timespan, idlespan, region, throwonerror )
Argument Summary
id the unique ID of the object/string in the cache
value the object to store into the cache
timespan the time span that this object should live for in the cache; use CacheTimeSpan() as it is a decimal of 1 day [optional]
idlespan the time span this this object will be removed from the cache is not used [optional]
region the region engine to use - default 'DEFAULT' [optional]
throwonerror if the region does not exist, throw an exception (default false) [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

CachePut(
   id=?, 
   value=?, 
   timespan=?, 
   idlespan=?, 
   region=?, 
   throwonerror=?
);

Supports passing parameters as a structure using ArgumentCollection:

CachePut( ArgumentCollection={
   id : ?, 
   value : ?, 
   timespan : ?, 
   idlespan : ?, 
   region : ?, 
   throwonerror : ?
} );

Extra

For more information on using caching and setup, visit the Caching