\Hazaar\Cache\Backend
Chain
The cache backend chaining backend.

This backend allows other caching backends to be chained together for fault tollerance. All operations (has,get,set,remove) are performed on ALL backends at once.

Configuration options for this backend is an array of ‘backend_name’ => ‘backend_options’ pairs. (see each backend for available options)

For example:

[ ‘file’ => [ ‘cache_dir’ => ‘/tmp/cache’ ], ‘memcached’ => [ ‘server’ => ‘localhost’ ] ]

Tags

Since

1.0.0

Summary
Methods Properties Constants
get
has
set
No constants
Properties
$backends
$backends
$order
$order
Inherited
$weight
$weight
Methods
Static
available()
available()
clear()
clear()
get()
get($key)

Parameters

$key

No description

has()
has($key)

Parameters

$key

No description

init()
init($namespace)

Parameters

$namespace

No description

remove()
remove($key)

Parameters

$key

No description

set()
set($key, $value, $timeout = null)

Parameters

$key

No description

$value

No description

$timeout

No description

setExpireTimeout()
setExpireTimeout($timeout)

Parameters

$timeout

No description