PacksPhpRedisValues
trait PacksPhpRedisValues (View source)
Properties
Methods
Prepares the given values to be used with the eval
command, including serialization and compression.
Execute the given callback without serialization or compression when applicable.
Determine if serialization is enabled.
Determine if compression is enabled.
Determine if LZF compression is enabled.
Determine if ZSTD compression is enabled.
Determine if LZ4 compression is enabled.
Determine if the current PhpRedis extension version supports packing.
Determine if the current PhpRedis extension version supports LZF compression.
Determine if the current PhpRedis extension version supports Zstd compression.
Determine if the PhpRedis extension version is at least the given version.
Details
array
pack(array $values)
Prepares the given values to be used with the eval
command, including serialization and compression.
mixed
withoutSerializationOrCompression(callable $callback)
Execute the given callback without serialization or compression when applicable.
protected bool
supportsPacking()
Determine if the current PhpRedis extension version supports packing.
protected bool
supportsLzf()
Determine if the current PhpRedis extension version supports LZF compression.
protected bool
supportsZstd()
Determine if the current PhpRedis extension version supports Zstd compression.