Adds a value to the cache.

Syntax

Smartsite SXML CopyCode image Copy Code
cache.set(string key, any value)
cache.set(string key, any value, string maxAge)

Parameters

Name Data Type Description
key String The key.
value Any The value.
maxAge String The maximum age of the cache, in TimeSpan format (HH:mm:ss).

Return Value

None.
SXML