# AddToCache(name:string, value:any, [timeout:numeric])

### Description

Adds the value passed to the controller’s internal cache, using the name passed as a key. If timeout is passed, it is the lifespan, in minutes, of the value passed.

### Returns

Void

### Arguments

Name (Required) - The key by which to identify this value in the cache.

Value (Required) - The value to cache

Timeout (Optional) - The number of minutes to store the value in the cache. Defaults to the DefaultCacheTimeout setting set the ModelGlueConfiguration bean in ColdSpring.xml.