RedisCaster
in package
Casts Redis class from ext-redis to array representation.
Tags
Table of Contents
- $compression : mixed
- $failover : mixed
- $mode : mixed
- $serializer : mixed
- castRedis() : mixed
- castRedisArray() : mixed
- castRedisCluster() : mixed
- getRedisOptions() : EnumStub
Properties
$compression
private
static mixed
$compression
= [
0 => 'NONE',
// Redis::COMPRESSION_NONE
1 => 'LZF',
]
$failover
private
static mixed
$failover
= [\RedisCluster::FAILOVER_NONE => 'NONE', \RedisCluster::FAILOVER_ERROR => 'ERROR', \RedisCluster::FAILOVER_DISTRIBUTE => 'DISTRIBUTE', \RedisCluster::FAILOVER_DISTRIBUTE_SLAVES => 'DISTRIBUTE_SLAVES']
$mode
private
static mixed
$mode
= [\Redis::ATOMIC => 'ATOMIC', \Redis::MULTI => 'MULTI', \Redis::PIPELINE => 'PIPELINE']
$serializer
private
static mixed
$serializer
= [\Redis::SERIALIZER_NONE => 'NONE', \Redis::SERIALIZER_PHP => 'PHP', 2 => 'IGBINARY']
Methods
castRedis()
public
static castRedis(Redis $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : Redis
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castRedisArray()
public
static castRedisArray(RedisArray $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : RedisArray
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —castRedisCluster()
public
static castRedisCluster(RedisCluster $c, array<string|int, mixed> $a, Stub $stub, bool $isNested) : mixed
Parameters
- $c : RedisCluster
- $a : array<string|int, mixed>
- $stub : Stub
- $isNested : bool
Return values
mixed —getRedisOptions()
private
static getRedisOptions(Redis|RedisArray|RedisCluster $redis[, array<string|int, mixed> $options = [] ]) : EnumStub
Parameters
- $redis : Redis|RedisArray|RedisCluster
- $options : array<string|int, mixed> = []