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
Summary
MethodsPropertiesConstants
No constants
Properties
$buffer
$buffer
$delim
$delim
$garbage
$garbage
$local
$local
$master
$master
$namespace
$namespace
$offset
$offset
$role
$role
$socket
$socket
$update_expire
$update_expire
$weight
$weight
Methods
Static
available()
available()
clear()
clear()
close()
close()
cmd()
cmd($cmds, $use_master = false)
connect()
connect($host, $port = 6379)
decode()
decode($socket, $chunk = null) : \array|integer|null|string
Decodes a RESP data chunk
decr()
decr($key, $step = 1)
encode()
encode($data)
get()
get($key)
getChunk()
getChunk($socket, $bytes = null)
has()
has($key)
incr()
incr($key, $step = 1)
init()
init($namespace)
keepalive()
keepalive()
keys()
keys()
remove()
remove($key)
select()
select($db)
set()
set($key, $value, $timeout = null)
toArray()
toArray()
values()
values()
Powered by Scroly.io Generated: Friday, August 30th 2019 at 11:44am