\Symfony\Component\VarDumper\CasterRedisCaster

Casts Redis class from ext-redis to array representation.

Summary

Methods
Properties
Constants
castRedis()
castRedisArray()
castRedisCluster()
No public properties found
SERIALIZERS
MODES
COMPRESSION_MODES
FAILOVER_OPTIONS
No protected methods found
No protected properties found
N/A
getRedisOptions()
No private properties found
N/A

Constants

SERIALIZERS

SERIALIZERS = [\Redis::SERIALIZER_NONE => 'NONE', \Redis::SERIALIZER_PHP => 'PHP', 2 => 'IGBINARY']

MODES

MODES = [\Redis::ATOMIC => 'ATOMIC', \Redis::MULTI => 'MULTI', \Redis::PIPELINE => 'PIPELINE']

COMPRESSION_MODES

COMPRESSION_MODES = [
    0 => 'NONE',
    // Redis::COMPRESSION_NONE
    1 => 'LZF',
]

FAILOVER_OPTIONS

FAILOVER_OPTIONS = [\RedisCluster::FAILOVER_NONE => 'NONE', \RedisCluster::FAILOVER_ERROR => 'ERROR', \RedisCluster::FAILOVER_DISTRIBUTE => 'DISTRIBUTE', \RedisCluster::FAILOVER_DISTRIBUTE_SLAVES => 'DISTRIBUTE_SLAVES']

Methods

castRedis()

castRedis(\Redis  $c, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\Redis $c
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castRedisArray()

castRedisArray(\RedisArray  $c, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\RedisArray $c
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

castRedisCluster()

castRedisCluster(\RedisCluster  $c, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested) : mixed

Parameters

\RedisCluster $c
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested

Returns

mixed —

getRedisOptions()

getRedisOptions(\Redis|\RedisArray|\RedisCluster  $redis, array  $options = []) : \Symfony\Component\VarDumper\Caster\EnumStub

Parameters

\Redis|\RedisArray|\RedisCluster $redis
array $options

Returns

\Symfony\Component\VarDumper\Caster\EnumStub —