System:Cache:put
From Aspen Documentation
Allows you to store data in a cache file, and allows you to set an expiration time.
The first argument is an identification key for this cache object. It may be anything - a word, a hash key, etc.
The second argument is the data you want to cache. If the data is an array or an object it will serialize it for you (internal php objects like those created using simplexml do not serialize properly and currently may not be cached. bug 1125).
Since 1.0
Arguments
boolean put (string $key, [mixed $data = false], [ $expiration = false])
- key
- An identification key we can associate the data with. This key will be used when retrieving it.
- data
- The data to store. May be any value type.
- expiration
- A date string after which the data will expire. Any valid php date function output is acceptable.