Hazaar
Cache
The cache frontend
Implements
Summary
MethodsPropertiesConstants
No constants
Properties
$backend
$backend
$options
$options
$use_cache
$use_cache
Methods
__call()
__call($method, $args) : mixed
Catchall method

This method allows a function calls to be passed to a backend directly.

__construct()
__construct($backend = null, $config_options = Array ( ) , $namespace = 'default')
Cache object constructor
__get()
__get($key)
__isset()
__isset($key)
__set()
__set($key, $value)
__unset()
__unset($key)
clear()
clear()
configure()
configure($options)
extend()
extend($array, $recursive = false)
get()
get($key, $default = false, $save_default = false) : mixed
Retrieve a value from cache storage.
getBackend()
getBackend()
has()
has($key) : boolean
Check if a stored value exists.
off()
off()
Enable the use of cache

Cache is enabled by default. This is to allow cache to be re-enabled after calling off().

This method can also be used to force cache back on after being disabled by a "Pragma: no-cache" header in the case where the use_pragma setting is enabled (which is the default).

offsetExists()
offsetExists($offset)
offsetGet()
offsetGet($offset)
offsetSet()
offsetSet($offset, $value)
offsetUnset()
offsetUnset($offset)
on()
on()
Disable the use of cache

This allows a cache object to be disabled but still be used without having to modify existing application code. The application can still call the get() method but it will always return false, simulating a negative cache response. Calling set() will still have an affect however.

pull()
pull($key) : mixed
Return and remove an element from cache
remove()
remove($key) : boolean
Removes a stored value
set()
set($key, $value, $timeout = null) : boolean
Store a value in the cache using the current cache backend.
setBackendOption()
setBackendOption($key, $value)
setValues()
setValues($values)
toArray()
toArray()
Powered by Scroly.io Generated: Friday, August 30th 2019 at 11:44am