PhpRedisConnection
class PhpRedisConnection extends RedisConnection
Standard phpredis connection for standalone Redis and Sentinel.
Traits
Constants
| private CONNECTION_LEVEL_PHPREDIS_OPTIONS |
Top-level connection config keys that should be applied through setOption. |
Properties
| protected float | $lastUseTime | from Connection | |
| protected float | $lastReleaseTime | from Connection | |
| protected bool | $invalid | from Connection | |
| static protected array | $macros | The registered string macros. |
from Macroable |
| protected Redis|RedisCluster|null | $connection | from RedisConnection | |
| protected float | $createdAt | from RedisConnection | |
| protected float|null | $lifetimeExpiresAt | from RedisConnection | |
| protected bool | $availableForReuse | from RedisConnection | |
| protected Dispatcher|null | $eventDispatcher | from RedisConnection | |
| protected array | $config | from RedisConnection | |
| protected int|null | $database | Current redis database. |
from RedisConnection |
| protected bool | $watching | Determine if the native connection is watching keys. |
from RedisConnection |
| protected bool | $shouldTransform | Determine if the connection calls should be transformed to Laravel style. |
from RedisConnection |
Methods
Create a new PhpRedis connection instance.
Mix another object into the class.
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Reconnect to Redis.
Set configured options on a Redis or RedisCluster client.
Get the phpredis options configured on the connection.
Resolve a phpredis option name to its native option constant.
Parse a friendly phpredis backoff algorithm name.
Check the Redis client for heartbeat health.
Clear the tracked watch state after callback-form transaction completion.
Determine if this connection has been idle long enough to be evicted.
Determine if this connection generation has reached its maximum lifetime.
Determine whether a failed command left the connection unsafe to reuse.
Determine if the underlying Redis client is in pipeline/multi mode.
Determine if the connection is to a Redis Cluster.
Determine if the given key contains a Redis Cluster hash tag.
Ping Redis for heartbeat health without shadowing the public Redis PING command.
Log a redis connection message.
Determine if the connection calls should be transformed to Laravel style.
Set the string value in the argument as the value of the key.
Set the given key if it doesn't exist.
Prepare arguments for the hmget command.
Get the value of the given hash fields.
Prepare arguments for the hmset command.
Set the given hash fields to their respective values.
Set the given hash field if it doesn't exist.
Removes the first count occurrences of the value element from the list.
Removes and returns the first element of the list stored at key.
Removes and returns the last element of the list stored at key.
Removes and returns random elements from the set value at key.
Prepare arguments for the xautoclaim command.
Claim pending stream entries that have been idle long enough.
Prepare arguments for the xgroup command.
Prepare arguments for the xpending command.
Get pending entries in a stream consumer group.
Prepare arguments for the xrange command.
Get stream entries within the given ID range.
Prepare arguments for the xrevrange command.
Get stream entries within the given ID range in reverse order.
Prepare arguments for the xtrim command.
Trim a stream by its length or minimum ID.
Add one or more members to a sorted set or update its score if it already exists.
Prepare arguments for the zcount command.
Count sorted set members within the given score range.
Prepare arguments for the zremrangebyscore command.
Remove sorted set members within the given score range.
Prepare arguments for the zrangebyscore command.
Return elements with score between $min and $max.
Prepare arguments for the zrevrangebyscore command.
Return elements with score between $max and $min in reverse order.
Prepare arguments for the zinterstore command.
Find the intersection between sets and store in a new set.
Prepare arguments for the zunionstore command.
Find the union between sets and store in a new set.
Execute the transformed SCAN command.
Scan the given set for all values based on options.
Execute the transformed ZSCAN command.
Scan the given hash for all values based on options.
Execute the transformed HSCAN command.
Scan the given set for all values based on options.
Execute the transformed SSCAN command.
Evaluate a script and return its result.
Prepare arguments for the evalsha command.
Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself.
Prepare arguments for the executeRaw command.
Reject subscriptions on raw pooled connections.
Determine if a custom serializer is configured on the connection.
Execute the given callback without prefixing scan patterns.
Execute the given callback without serialization or compression.
Execute a Lua script using evalSha with automatic fallback to eval.
Create an exception for a Lua script error.
Normalize topology-specific null replies.
Safely scan the Redis keyspace for keys matching a pattern.
Flush (delete) all Redis keys matching a pattern.
Set the value of a key
Set hash field if not exists
Set hash field values
Blocking left pop from list
Blocking right pop from list
Remove members from set
Add members to sorted set
Count sorted set members by score range
Get sorted set members by score range
No description
Intersect sorted sets
Union sorted sets
Evaluate Lua script
Evaluate Lua script by SHA1
Delete hash fields
Remove sorted set members
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Flush the selected Redis database.
Create a redis connection.
Format the host using the scheme if available.
Normalize the SSL context for a standalone Redis connection.
Create a redis sentinel connection.
Details
at line 26
__construct(Container $container, ConnectionPool $pool, array $config)
Create a new PhpRedis connection instance.
in
RedisConnection at line 719
void
release()
Release the connection back to pool.
in
Connection at line 103
void
discard()
Discard the connection from its pool.
in
Connection at line 111
mixed
getConnection()
Get the underlying connection.
in
RedisConnection at line 465
bool
check()
Check if the connection is still valid.
in
Connection at line 138
float
getLastUseTime()
Get the last use time.
in
Connection at line 146
float
getLastReleaseTime()
Get the last release time.
in
Connection at line 154
protected void
markInvalid()
Mark the connection as invalid.
in
Connection at line 162
protected void
markValid()
Mark the connection as valid.
in
RedisConnection at line 447
mixed
getActiveConnection()
Get the active connection.
in
Macroable at line 30
static void
macro(string $name, callable|object $macro)
Register a custom macro.
Macros persist in a static property for the worker lifetime and apply to every subsequent call on the macroable class.
in
Macroable at line 44
static void
mixin(object $mixin, bool $replace = true)
Mix another object into the class.
Delegates to macro() for each method; registered macros persist in a static property for the worker lifetime.
in
Macroable at line 61
static bool
hasMacro(string $name)
Check if macro is registered.
in
Macroable at line 72
static void
flushMacros()
Flush the existing macros.
Clears worker-wide macros; concurrent coroutines may resolve different methods depending on timing.
in
Macroable at line 83
static mixed
__callStatic(string $method, array $parameters)
Dynamically handle calls to the class.
in
Macroable at line 108
mixed
__call(string $method, array $parameters)
Dynamically handle calls to the class.
in
RedisConnection at line 498
void
invalidate()
| internal |
Mark the connection invalid before its next use.
in
RedisConnection at line 506
string
getName()
Get the connection name.
in
RedisConnection at line 514
Dispatcher|null
getEventDispatcher()
Get the event dispatcher instance.
at line 39
bool
reconnect()
Reconnect to Redis.
in
RedisConnection at line 530
protected void
markReconnected()
Mark the underlying Redis client as freshly connected.
in
RedisConnection at line 544
protected void
setOptions(Redis|RedisCluster $redis)
Set configured options on a Redis or RedisCluster client.
in
RedisConnection at line 587
protected array
configuredPhpRedisOptions()
Get the phpredis options configured on the connection.
in
RedisConnection at line 607
protected int
phpRedisOption(string $name)
Resolve a phpredis option name to its native option constant.
in
RedisConnection at line 633
protected int
parseBackoffAlgorithm(mixed $algorithm)
Parse a friendly phpredis backoff algorithm name.
in
RedisConnection at line 662
bool
close()
Close the current connection.
Calling the native phpredis close() releases the underlying socket deterministically rather than relying on PHP refcount destruction - connections trapped in pool/connection reference cycles would otherwise keep their FDs open until the cycle collector runs.
in
RedisConnection at line 688
bool
heartbeatCheck(float $timeout)
Check the Redis client for heartbeat health.
in
RedisConnection at line 868
bool|Redis
discardTransaction()
Execute the native Redis DISCARD command.
Use this method on a held connection because discard() removes the connection from its pool.
in
RedisConnection at line 884
void
clearWatchState()
| internal |
Clear the tracked watch state after callback-form transaction completion.
in
RedisConnection at line 892
bool
isIdleExpired(float|null $now = null)
Determine if this connection has been idle long enough to be evicted.
in
RedisConnection at line 907
float
getCreatedAt()
Get the connection generation creation time.
in
RedisConnection at line 915
bool
isLifetimeExpired(float|null $now = null)
Determine if this connection generation has reached its maximum lifetime.
in
RedisConnection at line 927
protected bool
shouldInvalidateAfter(RedisException|RedisClusterException|ErrorException $exception)
Determine whether a failed command left the connection unsafe to reuse.
at line 109
protected bool
isQueueingMode()
Determine if the underlying Redis client is in pipeline/multi mode.
at line 101
bool
isCluster()
Determine if the connection is to a Redis Cluster.
in
RedisConnection at line 970
static bool
hasHashTag(string $key)
Determine if the given key contains a Redis Cluster hash tag.
in
RedisConnection at line 986
protected bool
pingForHeartbeat()
Ping Redis for heartbeat health without shadowing the public Redis PING command.
in
RedisConnection at line 1025
protected void
log(string $message, string $level = LogLevel::WARNING)
Log a redis connection message.
in
RedisConnection at line 1035
RedisConnection
shouldTransform(bool $shouldTransform = true)
Determine if the connection calls should be transformed to Laravel style.
in
RedisConnection at line 1045
bool
getShouldTransform()
Get the current transformation state.
in
RedisConnection at line 1053
protected mixed
callGet(string $key)
Returns the value of the given key.
in
RedisConnection at line 1063
protected array|false
callMget(array $keys)
Get the values of all the given keys.
in
RedisConnection at line 1086
protected array
prepareSet(mixed ...$arguments)
Prepare arguments for the set command.
in
RedisConnection at line 1099
protected mixed
callSet(string $key, mixed $value, mixed $expireResolution = null, int|null $expireTTL = null, string|null $flag = null)
Set the string value in the argument as the value of the key.
in
RedisConnection at line 1110
protected int
callSetnx(string $key, mixed $value)
Set the given key if it doesn't exist.
in
RedisConnection at line 1120
protected array
prepareHmget(mixed ...$arguments)
Prepare arguments for the hmget command.
in
RedisConnection at line 1131
protected array|false
callHmget(string $key, mixed ...$dictionary)
Get the value of the given hash fields.
in
RedisConnection at line 1149
protected array
prepareHmset(mixed ...$arguments)
Prepare arguments for the hmset command.
in
RedisConnection at line 1167
protected bool
callHmset(string $key, mixed ...$dictionary)
Set the given hash fields to their respective values.
in
RedisConnection at line 1177
protected int
callHsetnx(string $hash, string $key, mixed $value)
Set the given hash field if it doesn't exist.
in
RedisConnection at line 1187
protected array
prepareLrem(mixed ...$arguments)
Prepare arguments for the lrem command.
in
RedisConnection at line 1197
protected false|int
callLrem(string $key, int $count, mixed $value)
Removes the first count occurrences of the value element from the list.
in
RedisConnection at line 1207
protected array|null
callBlpop(mixed ...$arguments)
Removes and returns the first element of the list stored at key.
in
RedisConnection at line 1217
protected array|null
callBrpop(mixed ...$arguments)
Removes and returns the last element of the list stored at key.
in
RedisConnection at line 1230
protected mixed
callSpop(string $key, int|null $count = null)
Removes and returns random elements from the set value at key.
When called without count, returns a single element (string|false). When called with count, returns an array of elements.
in
RedisConnection at line 1264
protected array
prepareXadd(mixed ...$arguments)
Prepare arguments for the xadd command.
in
RedisConnection at line 1272
protected false|string
callXadd(mixed ...$arguments)
Add an entry to a stream.
in
RedisConnection at line 1284
protected array
prepareXautoclaim(mixed ...$arguments)
Prepare arguments for the xautoclaim command.
in
RedisConnection at line 1292
protected array|bool
callXautoclaim(mixed ...$arguments)
Claim pending stream entries that have been idle long enough.
in
RedisConnection at line 1304
protected array
prepareXgroup(mixed ...$arguments)
Prepare arguments for the xgroup command.
in
RedisConnection at line 1312
protected mixed
callXgroup(mixed ...$arguments)
Manage stream consumer groups.
in
RedisConnection at line 1324
protected array
prepareXpending(mixed ...$arguments)
Prepare arguments for the xpending command.
in
RedisConnection at line 1332
protected array|false
callXpending(mixed ...$arguments)
Get pending entries in a stream consumer group.
in
RedisConnection at line 1344
protected array
prepareXrange(mixed ...$arguments)
Prepare arguments for the xrange command.
in
RedisConnection at line 1352
protected array|bool
callXrange(mixed ...$arguments)
Get stream entries within the given ID range.
in
RedisConnection at line 1364
protected array
prepareXrevrange(mixed ...$arguments)
Prepare arguments for the xrevrange command.
in
RedisConnection at line 1372
protected array|bool
callXrevrange(mixed ...$arguments)
Get stream entries within the given ID range in reverse order.
in
RedisConnection at line 1384
protected array
prepareXtrim(mixed ...$arguments)
Prepare arguments for the xtrim command.
in
RedisConnection at line 1392
protected false|int
callXtrim(mixed ...$arguments)
Trim a stream by its length or minimum ID.
in
RedisConnection at line 1404
protected array
prepareZadd(mixed ...$arguments)
Prepare arguments for the zadd command.
in
RedisConnection at line 1432
protected false|float|int
callZadd(string $key, mixed ...$dictionary)
Add one or more members to a sorted set or update its score if it already exists.
in
RedisConnection at line 1444
protected array
prepareZcount(mixed ...$arguments)
Prepare arguments for the zcount command.
in
RedisConnection at line 1452
protected false|int
callZcount(mixed ...$arguments)
Count sorted set members within the given score range.
in
RedisConnection at line 1464
protected array
prepareZremrangebyscore(mixed ...$arguments)
Prepare arguments for the zremrangebyscore command.
in
RedisConnection at line 1472
protected false|int
callZremrangebyscore(mixed ...$arguments)
Remove sorted set members within the given score range.
in
RedisConnection at line 1484
protected array
prepareZrangebyscore(mixed ...$arguments)
Prepare arguments for the zrangebyscore command.
in
RedisConnection at line 1502
protected array|false
callZrangebyscore(string $key, float|int|string $min, float|int|string $max, array $options = [])
Return elements with score between $min and $max.
in
RedisConnection at line 1514
protected array
prepareZrevrangebyscore(mixed ...$arguments)
Prepare arguments for the zrevrangebyscore command.
in
RedisConnection at line 1532
protected array|false
callZrevrangebyscore(string $key, float|int|string $max, float|int|string $min, array $options = [])
Return elements with score between $max and $min in reverse order.
in
RedisConnection at line 1544
protected array
prepareZinterstore(mixed ...$arguments)
Prepare arguments for the zinterstore command.
in
RedisConnection at line 1555
protected false|int
callZinterstore(string $output, array $keys, array $options = [])
Find the intersection between sets and store in a new set.
in
RedisConnection at line 1567
protected array
prepareZunionstore(mixed ...$arguments)
Prepare arguments for the zunionstore command.
in
RedisConnection at line 1578
protected false|int
callZunionstore(string $output, array $keys, array $options = [])
Find the union between sets and store in a new set.
in
RedisConnection at line 1588
protected array
getScanOptions(array $arguments)
Get the Redis scan options.
in
RedisConnection at line 1601
mixed
scan(mixed $cursor, mixed ...$arguments)
Scan all keys based on options.
in
RedisConnection at line 1609
protected mixed
callScan(mixed $cursor, mixed ...$arguments)
Execute the transformed SCAN command.
in
RedisConnection at line 1631
mixed
zscan(mixed $key, mixed $cursor, mixed ...$arguments)
Scan the given set for all values based on options.
in
RedisConnection at line 1639
protected mixed
callZscan(mixed $key, mixed $cursor, mixed ...$arguments)
Execute the transformed ZSCAN command.
in
RedisConnection at line 1662
mixed
hscan(mixed $key, mixed $cursor, mixed ...$arguments)
Scan the given hash for all values based on options.
in
RedisConnection at line 1670
protected mixed
callHscan(mixed $key, mixed $cursor, mixed ...$arguments)
Execute the transformed HSCAN command.
in
RedisConnection at line 1693
mixed
sscan(mixed $key, mixed $cursor, mixed ...$arguments)
Scan the given set for all values based on options.
in
RedisConnection at line 1701
protected mixed
callSscan(mixed $key, mixed $cursor, mixed ...$arguments)
Execute the transformed SSCAN command.
in
RedisConnection at line 1724
protected array
prepareEval(mixed ...$arguments)
Prepare arguments for the eval command.
in
RedisConnection at line 1736
protected mixed
callEval(string $script, int $numberOfKeys, mixed ...$arguments)
Evaluate a script and return its result.
in
RedisConnection at line 1751
protected array
prepareEvalsha(mixed ...$arguments)
Prepare arguments for the evalsha command.
Falls back to eval in MULTI/PIPELINE mode because script('load') cannot execute synchronously while the connection is queueing.
in
RedisConnection at line 1763
protected mixed
callEvalsha(string $script, int $numkeys, mixed ...$arguments)
Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself.
in
RedisConnection at line 1777
protected array
prepareExecuteRaw(mixed ...$arguments)
Prepare arguments for the executeRaw command.
in
RedisConnection at line 1785
protected mixed
callExecuteRaw(array $parameters)
Execute a raw command.
in
RedisConnection at line 1804
protected never
callSubscribe(string $name, array $arguments)
Reject subscriptions on raw pooled connections.
Pub/sub requires a dedicated, long-lived connection that is incompatible with connection pooling. Use the coroutine-native subscriber instead:
Redis::subscribe($channels, $callback);
Redis::psubscribe($channels, $callback);
$subscriber = Redis::subscriber();
in
RedisConnection at line 1815
bool
serialized()
Determine if a custom serializer is configured on the connection.
in
RedisConnection at line 1823
bool
compressed()
Determine if compression is configured on the connection.
in
RedisConnection at line 1831
bool
lzfCompressed()
Determine if LZF compression is enabled.
in
RedisConnection at line 1840
bool
zstdCompressed()
Determine if ZSTD compression is enabled.
in
RedisConnection at line 1849
bool
lz4Compressed()
Determine if LZ4 compression is enabled.
in
RedisConnection at line 1866
mixed
withoutScanPrefix(callable $callback)
Execute the given callback without prefixing scan patterns.
Key prefixing remains unchanged. Hold this connection until the callback finishes so its scan options are restored before returning it to the pool.
in
RedisConnection at line 1894
mixed
withoutSerializationOrCompression(callable $callback)
Execute the given callback without serialization or compression.
Temporarily disables phpredis serialization and compression on the raw connection for operations that require raw integer values (e.g., rate limiter counters), then restores the original settings.
in
RedisConnection at line 1935
array
pack(array $values)
Pack values for use in Lua script ARGV parameters.
Unlike regular Redis commands where phpredis auto-serializes, Lua ARGV parameters must be pre-serialized strings.
Requires phpredis 6.0+ which provides the _pack() method.
in
RedisConnection at line 1949
mixed
client()
Get the underlying Redis client instance.
in
RedisConnection at line 1974
mixed
evalWithShaCache(string $script, array $keys = [], array $args = [])
Execute a Lua script using evalSha with automatic fallback to eval.
Redis caches compiled Lua scripts by SHA1 hash. This method tries evalSha first (uses cached compiled script), and falls back to eval if the script isn't cached yet (NOSCRIPT error).
Unlike naive implementations that treat any false return as NOSCRIPT,
this method wraps script and data errors returned by phpredis as false
while native server, cluster, authentication, and transport exceptions
propagate unchanged.
in
RedisConnection at line 2026
protected Throwable
scriptException(string $error)
Create an exception for a Lua script error.
in
RedisConnection at line 2034
protected mixed
normalizeNullReplies(mixed $result)
Normalize topology-specific null replies.
in
RedisConnection at line 2054
Generator
safeScan(string $pattern, int $count = 1000)
Safely scan the Redis keyspace for keys matching a pattern.
This method handles the phpredis OPT_PREFIX complexity correctly:
- Applies OPT_PREFIX to the scan pattern exactly once, respecting SCAN_PREFIX
- Strips OPT_PREFIX from returned keys so they work with other commands
The connection must be held with transform disabled so SCAN retains its native phpredis cursor and result shape.
in
RedisConnection at line 2080
int
flushByPattern(string $pattern)
Flush (delete) all Redis keys matching a pattern.
Use this inside withConnection(..., transform: false) when doing multiple operations on the same connection. No connection lifecycle overhead since you're operating on an existing connection.
For standalone/one-off operations, use Redis::flushByPattern() instead, which handles connection lifecycle automatically.
Uses SCAN to iterate keys efficiently and deletes them in batches. Correctly handles OPT_PREFIX to avoid the double-prefixing bug.
in
RedisConnection at line 303
mixed
get(string $key)
Get the value of a key
in
RedisConnection at line 303
mixed
set(string $key, mixed $value, mixed $expireResolution = 'null', int|null $expireTTL = 'null', string|null $flag = 'null')
Set the value of a key
in
RedisConnection at line 303
RedisCluster
mget(array $keys)
Get the values of multiple keys
in
RedisConnection at line 303
RedisCluster
setnx(string $key, mixed $value)
Set key if not exists
in
RedisConnection at line 303
RedisCluster
hmget(string $key, array $fields)
Get hash field values
in
RedisConnection at line 303
RedisCluster
hmset(string $key, array $fieldValues)
Set hash field values
in
RedisConnection at line 303
RedisCluster
hsetnx(string $hash, string $key, mixed $value)
Set hash field if not exists
in
RedisConnection at line 303
mixed
hget(string $key, string $member)
Get hash field value
in
RedisConnection at line 303
RedisCluster
hset(string $key, mixed ...$fields_and_vals)
Set hash field values
in
RedisConnection at line 303
false|int
lrem(string $key, int $count, mixed $value)
Remove list elements
in
RedisConnection at line 303
RedisCluster
llen(string $key)
Get list length
in
RedisConnection at line 303
RedisCluster
blpop(array|string $key_or_keys, float|int|string $timeout_or_key, mixed ...$extra_args)
Blocking left pop from list
in
RedisConnection at line 303
RedisCluster
brpop(array|string $key_or_keys, float|int|string $timeout_or_key, mixed ...$extra_args)
Blocking right pop from list
in
RedisConnection at line 303
mixed
spop(string $key, int $count = '0')
Remove and return random set member
in
RedisConnection at line 303
RedisCluster
sRem(string $key, mixed $value, mixed ...$other_values)
Remove members from set
in
RedisConnection at line 303
RedisCluster
zadd(string $key, array|float $score_or_options, mixed ...$more_scores_and_mems)
Add members to sorted set
in
RedisConnection at line 303
RedisCluster
zcard(string $key)
Get sorted set cardinality
in
RedisConnection at line 303
RedisCluster
zcount(string $key, float|int|string $start, float|int|string $end)
Count sorted set members by score range
in
RedisConnection at line 303
RedisCluster
zrangebyscore(string $key, float|int|string $min, float|int|string $max, array $options = '[]')
Get sorted set members by score range
in
RedisConnection at line 303
RedisCluster
zrevrangebyscore(string $key, float|int|string $max, float|int|string $min, array $options = '[]') Get sorted set members by score range (reverse)
No description
in
RedisConnection at line 303
RedisCluster
zinterstore(string $output, array $keys, array $options = '[]')
Intersect sorted sets
in
RedisConnection at line 303
RedisCluster
zunionstore(string $output, array $keys, array $options = '[]')
Union sorted sets
in
RedisConnection at line 303
mixed
eval(string $script, int $numberOfKeys, mixed ...$arguments)
Evaluate Lua script
in
RedisConnection at line 303
mixed
evalsha(string $script, int $numkeys, mixed ...$arguments)
Evaluate Lua script by SHA1
in
RedisConnection at line 303
mixed
flushdb(mixed ...$arguments)
Flush database
in
RedisConnection at line 303
mixed
executeRaw(array $parameters)
Execute raw Redis command
in
RedisConnection at line 303
Redis
pipeline()
Execute commands in a pipeline
in
RedisConnection at line 303
RedisCluster
smembers(string $key)
Get all set members
in
RedisConnection at line 303
RedisCluster
hdel(string $key, string $field, string ...$other_fields)
Delete hash fields
in
RedisConnection at line 303
RedisCluster
zrem(mixed $key, mixed $member, mixed ...$other_members)
Remove sorted set members
in
RedisConnection at line 303
RedisCluster
hlen(string $key)
Get number of hash fields
in
RedisConnection at line 303
RedisCluster
hkeys(string $key)
Get all hash field names
in
RedisConnection at line 303
string
_serialize(mixed $value)
Serialize a value using configured serializer
in
RedisConnection at line 303
string
_digest(mixed $value)
No description
in
RedisConnection at line 303
string
_pack(mixed $value)
No description
in
RedisConnection at line 303
mixed
_unpack(string $value)
No description
in
RedisConnection at line 303
mixed
acl(string $subcmd, string ...$args)
No description
in
RedisConnection at line 303
RedisCluster
append(string $key, mixed $value)
No description
in
RedisConnection at line 303
Redis
auth(mixed $credentials)
No description
in
RedisConnection at line 303
RedisCluster
bgSave()
No description
in
RedisConnection at line 303
RedisCluster
bgrewriteaof()
No description
in
RedisConnection at line 303
RedisCluster
waitaof(int $numlocal, int $numreplicas, int $timeout)
No description
in
RedisConnection at line 303
RedisCluster
bitcount(string $key, int $start = '0', int $end = '-1', bool $bybit = 'false')
No description
in
RedisConnection at line 303
RedisCluster
bitop(string $operation, string $deskey, string $srckey, string ...$other_keys)
No description
in
RedisConnection at line 303
RedisCluster
bitpos(string $key, bool $bit, int $start = '0', int $end = '-1', bool $bybit = 'false')
No description
in
RedisConnection at line 303
RedisCluster|string
brpoplpush(string $src, string $dst, float|int $timeout)
No description
in
RedisConnection at line 303
RedisCluster
bzPopMax(array|string $key, int|string $timeout_or_key, mixed ...$extra_args)
No description
in
RedisConnection at line 303
RedisCluster
bzPopMin(array|string $key, int|string $timeout_or_key, mixed ...$extra_args)
No description
in
RedisConnection at line 303
RedisCluster
bzmpop(float $timeout, array $keys, string $from, int $count = '1')
No description
in
RedisConnection at line 303
RedisCluster
zmpop(array $keys, string $from, int $count = '1')
No description
in
RedisConnection at line 303
RedisCluster
blmpop(float $timeout, array $keys, string $from, int $count = '1')
No description
in
RedisConnection at line 303
RedisCluster
lmpop(array $keys, string $from, int $count = '1')
No description
in
RedisConnection at line 303
bool
clearLastError()
No description
in
RedisConnection at line 303
mixed
command(string|null $opt = 'null', mixed ...$args)
No description
in
RedisConnection at line 303
mixed
config(string $operation, array|string|null $key_or_settings = 'null', string|null $value = 'null')
No description
in
RedisConnection at line 303
bool
connect(string $host, int $port = '6379', float $timeout = '0', string|null $persistent_id = 'null', int $retry_interval = '0', float $read_timeout = '0', array|null $context = 'null')
No description
in
RedisConnection at line 303
RedisCluster
copy(string $src, string $dst, array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
dbSize()
No description
in
RedisConnection at line 303
Redis|string
debug(string $key)
No description
in
RedisConnection at line 303
RedisCluster
decr(string $key, int $by = '1')
No description
in
RedisConnection at line 303
RedisCluster
decrBy(string $key, int $value)
No description
in
RedisConnection at line 303
RedisCluster
del(array|string $key, string ...$other_keys)
No description
in
RedisConnection at line 303
RedisCluster
delex(string $key, array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
delifeq(string $key, mixed $value)
No description
in
RedisConnection at line 303
RedisCluster|string
digest(string $key)
No description
in
RedisConnection at line 303
RedisCluster|string
dump(string $key)
No description
in
RedisConnection at line 303
RedisCluster|string
echo(string $str)
No description
in
RedisConnection at line 303
mixed
eval_ro(string $script_sha, array $args = '[]', int $num_keys = '0')
No description
in
RedisConnection at line 303
mixed
evalsha_ro(string $sha1, array $args = '[]', int $num_keys = '0')
No description
in
RedisConnection at line 303
Redis
exec()
No description
in
RedisConnection at line 303
RedisCluster
exists(mixed $key, mixed ...$other_keys)
No description
in
RedisConnection at line 303
RedisCluster
expire(string $key, int $timeout, string|null $mode = 'null')
No description
in
RedisConnection at line 303
RedisCluster
expireAt(string $key, int $timestamp, string|null $mode = 'null')
No description
in
RedisConnection at line 303
Redis
failover(array|null $to = 'null', bool $abort = 'false', int $timeout = '0')
No description
in
RedisConnection at line 303
RedisCluster
expiretime(string $key)
No description
in
RedisConnection at line 303
RedisCluster
pexpiretime(string $key)
No description
in
RedisConnection at line 303
mixed
fcall(string $fn, array $keys = '[]', array $args = '[]')
No description
in
RedisConnection at line 303
mixed
fcall_ro(string $fn, array $keys = '[]', array $args = '[]')
No description
in
RedisConnection at line 303
RedisCluster
flushAll(bool|null $sync = 'null')
No description
in
RedisConnection at line 303
Redis|string
function(string $operation, mixed ...$args)
No description
in
RedisConnection at line 303
RedisCluster
geoadd(string $key, float $lng, float $lat, string $member, mixed ...$other_triples_and_options)
No description
in
RedisConnection at line 303
RedisCluster
geodist(string $key, string $src, string $dst, string|null $unit = 'null')
No description
in
RedisConnection at line 303
RedisCluster
geohash(string $key, string $member, string ...$other_members)
No description
in
RedisConnection at line 303
RedisCluster
geopos(string $key, string $member, string ...$other_members)
No description
in
RedisConnection at line 303
mixed
georadius(string $key, float $lng, float $lat, float $radius, string $unit, array $options = '[]')
No description
in
RedisConnection at line 303
mixed
georadius_ro(string $key, float $lng, float $lat, float $radius, string $unit, array $options = '[]')
No description
in
RedisConnection at line 303
mixed
georadiusbymember(string $key, string $member, float $radius, string $unit, array $options = '[]')
No description
in
RedisConnection at line 303
mixed
georadiusbymember_ro(string $key, string $member, float $radius, string $unit, array $options = '[]')
No description
in
RedisConnection at line 303
array
geosearch(string $key, array|string $position, array|int|float $shape, string $unit, array $options = '[]')
No description
in
RedisConnection at line 303
RedisCluster
geosearchstore(string $dst, string $src, array|string $position, array|int|float $shape, string $unit, array $options = '[]')
No description
in
RedisConnection at line 303
mixed
getAuth()
No description
in
RedisConnection at line 303
RedisCluster
getBit(string $key, int $idx)
No description
in
RedisConnection at line 303
RedisCluster|string
getEx(string $key, array $options = '[]')
No description
in
RedisConnection at line 303
int
getDBNum()
No description
in
RedisConnection at line 303
RedisCluster|string
getDel(string $key)
No description
in
RedisConnection at line 303
string
getHost()
No description
in
RedisConnection at line 303
null|string
getLastError()
No description
in
RedisConnection at line 303
int
getMode()
No description
in
RedisConnection at line 303
mixed
getOption(int $option)
No description
in
RedisConnection at line 303
null|string
getPersistentID()
No description
in
RedisConnection at line 303
int
getPort()
No description
in
RedisConnection at line 303
RedisCluster|string
getRange(string $key, int $start, int $end)
No description
in
RedisConnection at line 303
RedisCluster|string
lcs(string $key1, string $key2, array|null $options = 'null')
No description
in
RedisConnection at line 303
float
getReadTimeout()
No description
in
RedisConnection at line 303
RedisCluster|string
getset(string $key, mixed $value)
No description
in
RedisConnection at line 303
false|float
getTimeout()
No description
in
RedisConnection at line 303
array
getTransferredBytes()
No description
in
RedisConnection at line 303
void
clearTransferredBytes()
No description
in
RedisConnection at line 303
RedisCluster
getWithMeta(string $key)
No description
in
RedisConnection at line 303
RedisCluster
hexpire(string $key, int $ttl, array $fields, string|null $mode = 'null')
No description
in
RedisConnection at line 303
RedisCluster
hpexpire(string $key, int $ttl, array $fields, string|null $mode = 'null')
No description
in
RedisConnection at line 303
RedisCluster
hexpireat(string $key, int $time, array $fields, string|null $mode = 'null')
No description
in
RedisConnection at line 303
RedisCluster
hpexpireat(string $key, int $mstime, array $fields, string|null $mode = 'null')
No description
in
RedisConnection at line 303
RedisCluster
httl(string $key, array $fields)
No description
in
RedisConnection at line 303
RedisCluster
hpttl(string $key, array $fields)
No description
in
RedisConnection at line 303
RedisCluster
hexpiretime(string $key, array $fields)
No description
in
RedisConnection at line 303
RedisCluster
hpexpiretime(string $key, array $fields)
No description
in
RedisConnection at line 303
RedisCluster
hpersist(string $key, array $fields)
No description
in
RedisConnection at line 303
RedisCluster
hExists(string $key, string $field)
No description
in
RedisConnection at line 303
RedisCluster
hGetAll(string $key)
No description
in
RedisConnection at line 303
mixed
hGetWithMeta(string $key, string $member)
No description
in
RedisConnection at line 303
RedisCluster
hgetdel(string $key, array $fields)
No description
in
RedisConnection at line 303
RedisCluster
hgetex(string $key, array $fields, string|array|null $expiry = 'null')
No description
in
RedisConnection at line 303
RedisCluster
hIncrBy(string $key, string $field, int $value)
No description
in
RedisConnection at line 303
RedisCluster
hIncrByFloat(string $key, string $field, float $value)
No description
in
RedisConnection at line 303
RedisCluster|string
hRandField(string $key, array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
hsetex(string $key, array $fields, array|null $expiry = 'null')
No description
in
RedisConnection at line 303
RedisCluster
hStrLen(string $key, string $field)
No description
in
RedisConnection at line 303
RedisCluster
hVals(string $key)
No description
in
RedisConnection at line 303
RedisCluster
incr(string $key, int $by = '1')
No description
in
RedisConnection at line 303
RedisCluster
incrBy(string $key, int $value)
No description
in
RedisConnection at line 303
RedisCluster
incrByFloat(string $key, float $value)
No description
in
RedisConnection at line 303
RedisCluster
info(string ...$sections)
No description
in
RedisConnection at line 303
bool
isConnected()
No description
in
RedisConnection at line 303
RedisCluster
keys(string $pattern)
No description
in
RedisConnection at line 303
RedisCluster
lInsert(string $key, string $pos, mixed $pivot, mixed $value)
No description
in
RedisConnection at line 303
RedisCluster|string
lMove(string $src, string $dst, string $wherefrom, string $whereto)
No description
in
RedisConnection at line 303
RedisCluster|string
blmove(string $src, string $dst, string $wherefrom, string $whereto, float $timeout)
No description
in
RedisConnection at line 303
RedisCluster|string
lPop(string $key, int $count = '0')
No description
in
RedisConnection at line 303
RedisCluster
lPos(string $key, mixed $value, array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
lPush(string $key, mixed ...$elements)
No description
in
RedisConnection at line 303
RedisCluster
rPush(string $key, mixed ...$elements)
No description
in
RedisConnection at line 303
RedisCluster
lPushx(string $key, mixed $value)
No description
in
RedisConnection at line 303
RedisCluster
rPushx(string $key, mixed $value)
No description
in
RedisConnection at line 303
RedisCluster
lSet(string $key, int $index, mixed $value)
No description
in
RedisConnection at line 303
int
lastSave()
No description
in
RedisConnection at line 303
mixed
lindex(string $key, int $index)
No description
in
RedisConnection at line 303
RedisCluster
lrange(string $key, int $start, int $end)
No description
in
RedisConnection at line 303
RedisCluster
ltrim(string $key, int $start, int $end)
No description
in
RedisConnection at line 303
Redis
migrate(string $host, int $port, array|string $key, int $dstdb, int $timeout, bool $copy = 'false', bool $replace = 'false', mixed $credentials = 'null')
No description
in
RedisConnection at line 303
Redis
move(string $key, int $index)
No description
in
RedisConnection at line 303
RedisCluster
mset(array $key_values)
No description
in
RedisConnection at line 303
RedisCluster
msetex(array $key_values, int|float|array|null $expiry = 'null')
No description
in
RedisConnection at line 303
RedisCluster
msetnx(array $key_values)
No description
in
RedisConnection at line 303
RedisCluster
multi(int $value = '1')
No description
in
RedisConnection at line 303
RedisCluster|string
object(string $subcommand, string $key)
No description
in
RedisConnection at line 303
bool
pconnect(string $host, int $port = '6379', float $timeout = '0', string|null $persistent_id = 'null', int $retry_interval = '0', float $read_timeout = '0', array|null $context = 'null')
No description
in
RedisConnection at line 303
RedisCluster
persist(string $key)
No description
in
RedisConnection at line 303
bool
pexpire(string $key, int $timeout, string|null $mode = 'null')
No description
in
RedisConnection at line 303
RedisCluster
pexpireAt(string $key, int $timestamp, string|null $mode = 'null')
No description
in
RedisConnection at line 303
RedisCluster
pfadd(string $key, array $elements)
No description
in
RedisConnection at line 303
RedisCluster
pfcount(array|string $key_or_keys)
No description
in
RedisConnection at line 303
RedisCluster
pfmerge(string $dst, array $srckeys)
No description
in
RedisConnection at line 303
RedisCluster|string
ping(string|null $message = 'null')
No description
in
RedisConnection at line 303
RedisCluster
psetex(string $key, int $expire, mixed $value)
No description
in
RedisConnection at line 303
RedisCluster
pttl(string $key)
No description
in
RedisConnection at line 303
RedisCluster
publish(string $channel, string $message)
No description
in
RedisConnection at line 303
mixed
pubsub(string $command, mixed $arg = 'null')
No description
in
RedisConnection at line 303
Redis
punsubscribe(array $patterns)
No description
in
RedisConnection at line 303
RedisCluster|string
rPop(string $key, int $count = '0')
No description
in
RedisConnection at line 303
RedisCluster|string
randomKey()
No description
in
RedisConnection at line 303
mixed
rawcommand(string $command, mixed ...$args)
No description
in
RedisConnection at line 303
RedisCluster
rename(string $old_name, string $new_name)
No description
in
RedisConnection at line 303
RedisCluster
renameNx(string $key_src, string $key_dst)
No description
in
RedisConnection at line 303
RedisCluster
restore(string $key, int $ttl, string $value, array|null $options = 'null')
No description
in
RedisConnection at line 303
mixed
role()
No description
in
RedisConnection at line 303
RedisCluster|string
rpoplpush(string $srckey, string $dstkey)
No description
in
RedisConnection at line 303
RedisCluster
sAdd(string $key, mixed $value, mixed ...$other_values)
No description
in
RedisConnection at line 303
int
sAddArray(string $key, array $values)
No description
in
RedisConnection at line 303
RedisCluster
sDiff(string $key, string ...$other_keys)
No description
in
RedisConnection at line 303
RedisCluster
sDiffStore(string $dst, string $key, string ...$other_keys)
No description
in
RedisConnection at line 303
RedisCluster
sInter(array|string $key, string ...$other_keys)
No description
in
RedisConnection at line 303
RedisCluster
sintercard(array $keys, int $limit = '-1')
No description
in
RedisConnection at line 303
RedisCluster
sInterStore(array|string $key, string ...$other_keys)
No description
in
RedisConnection at line 303
RedisCluster
sMisMember(string $key, string $member, string ...$other_members)
No description
in
RedisConnection at line 303
RedisCluster
sMove(string $src, string $dst, mixed $value)
No description
in
RedisConnection at line 303
mixed
sRandMember(string $key, int $count = '0')
No description
in
RedisConnection at line 303
RedisCluster
sUnion(string $key, string ...$other_keys)
No description
in
RedisConnection at line 303
RedisCluster
sUnionStore(string $dst, string $key, string ...$other_keys)
No description
in
RedisConnection at line 303
RedisCluster
save()
No description
in
RedisConnection at line 303
RedisCluster
scard(string $key)
No description
in
RedisConnection at line 303
mixed
script(string $command, mixed ...$args)
No description
in
RedisConnection at line 303
Redis
select(int $db)
No description
in
RedisConnection at line 303
false|string
serverName()
No description
in
RedisConnection at line 303
false|string
serverVersion()
No description
in
RedisConnection at line 303
RedisCluster
setBit(string $key, int $idx, bool $value)
No description
in
RedisConnection at line 303
RedisCluster
setRange(string $key, int $index, string $value)
No description
in
RedisConnection at line 303
bool
setOption(int $option, mixed $value)
No description
in
RedisConnection at line 303
RedisCluster
setex(string $key, int $expire, mixed $value)
No description
in
RedisConnection at line 303
RedisCluster
sismember(string $key, mixed $value)
No description
in
RedisConnection at line 303
Redis
replicaof(string|null $host = 'null', int $port = '6379')
No description
in
RedisConnection at line 303
RedisCluster
touch(array|string $key_or_array, string ...$more_keys)
No description
in
RedisConnection at line 303
mixed
slowlog(string $operation, int $length = '0')
No description
in
RedisConnection at line 303
mixed
sort(string $key, array|null $options = 'null')
No description
in
RedisConnection at line 303
mixed
sort_ro(string $key, array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
strlen(string $key)
No description
in
RedisConnection at line 303
Redis
sunsubscribe(array $channels)
No description
in
RedisConnection at line 303
Redis
swapdb(int $src, int $dst)
No description
in
RedisConnection at line 303
RedisCluster
time()
No description
in
RedisConnection at line 303
RedisCluster
ttl(string $key)
No description
in
RedisConnection at line 303
RedisCluster
type(string $key)
No description
in
RedisConnection at line 303
RedisCluster
unlink(array|string $key, string ...$other_keys)
No description
in
RedisConnection at line 303
Redis
unsubscribe(array $channels)
No description
in
RedisConnection at line 303
Redis
unwatch()
No description
in
RedisConnection at line 303
RedisCluster
vadd(string $key, array $values, mixed $element, array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
vcard(string $key)
No description
in
RedisConnection at line 303
RedisCluster
vdim(string $key)
No description
in
RedisConnection at line 303
RedisCluster
vemb(string $key, mixed $member, bool $raw = 'false')
No description
in
RedisConnection at line 303
RedisCluster|string
vgetattr(string $key, mixed $member, bool $decode = 'true')
No description
in
RedisConnection at line 303
RedisCluster
vinfo(string $key)
No description
in
RedisConnection at line 303
RedisCluster
vismember(string $key, mixed $member)
No description
in
RedisConnection at line 303
RedisCluster
vlinks(string $key, mixed $member, bool $withscores = 'false')
No description
in
RedisConnection at line 303
RedisCluster|string
vrandmember(string $key, int $count = '0')
No description
in
RedisConnection at line 303
RedisCluster
vrange(string $key, string $min, string $max, int $count = '-1')
No description
in
RedisConnection at line 303
RedisCluster
vrem(string $key, mixed $member)
No description
in
RedisConnection at line 303
RedisCluster
vsetattr(string $key, mixed $member, array|string $attributes)
No description
in
RedisConnection at line 303
RedisCluster
vsim(string $key, mixed $member, array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
watch(array|string $key, string ...$other_keys)
No description
in
RedisConnection at line 303
false|int
wait(int $numreplicas, int $timeout)
No description
in
RedisConnection at line 303
false|int
xack(string $key, string $group, array $ids)
No description
in
RedisConnection at line 303
RedisCluster|string
xadd(string $key, int|string $id, array $values, int $maxlen = '0', bool $approx = 'false', bool $nomkstream = 'false')
No description
in
RedisConnection at line 303
RedisCluster
xautoclaim(string $key, string $group, string $consumer, int $min_idle, int|string $start, int $count = '-1', bool $justid = 'false')
No description
in
RedisConnection at line 303
RedisCluster
xclaim(string $key, string $group, string $consumer, int $min_idle, array $ids, array $options)
No description
in
RedisConnection at line 303
RedisCluster
xdel(string $key, array $ids)
No description
in
RedisConnection at line 303
RedisCluster
xdelex(string $key, array $ids, string|null $mode = 'null')
No description
in
RedisConnection at line 303
mixed
xgroup(string $operation, string|null $key = 'null', string|null $group = 'null', int|string|null $id_or_consumer = 'null', bool $mkstream = 'false', int $entries_read = '-2')
No description
in
RedisConnection at line 303
mixed
xinfo(string $operation, string|null $arg1 = 'null', string|null $arg2 = 'null', int $count = '-1')
No description
in
RedisConnection at line 303
RedisCluster
xlen(string $key)
No description
in
RedisConnection at line 303
RedisCluster
xpending(string $key, string $group, int|string|null $start = 'null', int|string|null $end = 'null', int $count = '-1', string|null $consumer = 'null')
No description
in
RedisConnection at line 303
RedisCluster
xrange(string $key, int|string $start, int|string $end, int $count = '-1')
No description
in
RedisConnection at line 303
RedisCluster
xread(array $streams, int $count = '-1', int $block = '-1')
No description
in
RedisConnection at line 303
RedisCluster
xreadgroup(string $group, string $consumer, array $streams, int $count = '1', int $block = '1')
No description
in
RedisConnection at line 303
RedisCluster
xrevrange(string $key, int|string $end, int|string $start, int $count = '-1')
No description
in
RedisConnection at line 303
RedisCluster
xtrim(string $key, int|string $threshold, bool $approx = 'false', bool $minid = 'false', int $limit = '-1')
No description
in
RedisConnection at line 303
RedisCluster
zIncrBy(string $key, float $value, mixed $member)
No description
in
RedisConnection at line 303
RedisCluster
zLexCount(string $key, string $min, string $max)
No description
in
RedisConnection at line 303
RedisCluster
zMscore(string $key, mixed $member, mixed ...$other_members)
No description
in
RedisConnection at line 303
RedisCluster
zPopMax(string $key, int|null $count = 'null')
No description
in
RedisConnection at line 303
RedisCluster
zPopMin(string $key, int|null $count = 'null')
No description
in
RedisConnection at line 303
RedisCluster
zRange(string $key, string|int $start, string|int $end, array|bool|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
zRangeByLex(string $key, string $min, string $max, int $offset = '-1', int $count = '-1')
No description
in
RedisConnection at line 303
RedisCluster
zrangestore(string $dstkey, string $srckey, string $start, string $end, array|bool|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster|string
zRandMember(string $key, array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
zRank(string $key, mixed $member)
No description
in
RedisConnection at line 303
RedisCluster
zRemRangeByLex(string $key, string $min, string $max)
No description
in
RedisConnection at line 303
RedisCluster
zRemRangeByRank(string $key, int $start, int $end)
No description
in
RedisConnection at line 303
RedisCluster
zRemRangeByScore(string $key, float|int|string $start, float|int|string $end)
No description
in
RedisConnection at line 303
RedisCluster
zRevRange(string $key, int $start, int $end, mixed $scores = 'null')
No description
in
RedisConnection at line 303
RedisCluster
zRevRangeByLex(string $key, string $max, string $min, int $offset = '-1', int $count = '-1')
No description
in
RedisConnection at line 303
RedisCluster
zRevRank(string $key, mixed $member)
No description
in
RedisConnection at line 303
RedisCluster
zScore(string $key, mixed $member)
No description
in
RedisConnection at line 303
RedisCluster
zdiff(array $keys, array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
zdiffstore(string $dst, array $keys)
No description
in
RedisConnection at line 303
RedisCluster
zinter(array $keys, array|null $weights = 'null', array|null $options = 'null')
No description
in
RedisConnection at line 303
RedisCluster
zintercard(array $keys, int $limit = '-1')
No description
in
RedisConnection at line 303
RedisCluster
zunion(array $keys, array|null $weights = 'null', array|null $options = 'null')
No description
at line 117
protected mixed
callFlushdb(mixed ...$arguments)
Flush the selected Redis database.
at line 133
protected Redis
createRedis(array $config)
Create a redis connection.
at line 162
protected string
formatHost(array $config)
Format the host using the scheme if available.
at line 197
protected array
normalizeContext(array $context)
Normalize the SSL context for a standalone Redis connection.
Redis::connect() expects the context as ['stream' => ['verify_peer' => false, ...]].
at line 215
protected Redis
createRedisSentinel()
Create a redis sentinel connection.