Create memory cache (deprecated)Source:
Create memory cache (deprecated)
Maximum size of the cache, in bytes. If the cache exceeds this size, cached objects will be removed according to the value of the
Inffor no size limit. The default is 1 gigabyte.
Maximum age of files in cache before they are evicted, in seconds. Use
Inffor no age limit.
Maximum number of objects in the cache. If the number of objects exceeds this value, then cached objects will be removed according to the value of
Inffor no limit of number of items.
The eviction policy to use to decide which objects are removed when a cache pruning occurs. Currently,
A value to return when
get(key)is called but the key is not present in the cache. The default is a
key_missing()object. It is actually an expression that is evaluated each time there is a cache miss. See section Missing keys for more information.