\Hazaar\Cache\Backend
Redis
The Redis cache backend.

This is a nice, reliable caching backend that allows for clustering using the Redis clustering feature.

Available config options:

  • server – The redis server to connect to. Currently only a single server is supported. Default: localhost.
  • port – The port to connect to the server on. Default: 6379

Tags

Since

2.2.0

Summary
Methods Properties Constants
cmd
get
has
set
No constants
Properties
$namespace
$namespace
$socket
$socket
$weight
$weight
Methods
Static
available()
available()
clear()
clear()
close()
close()
cmd()
cmd($cmd, $data = null)

Parameters

$cmd

No description

$data

No description

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

select()
select($db)

Parameters

$db

No description

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

Parameters

$key

No description

$value

No description

$timeout

No description

toArray()
toArray()