trait
Illuminate
/
Redis
/
Connections
/
PacksPhpRedisValues
You are viewing an older version of the documentation. For the latest, please visit master documentation.
PacksPhpRedisValues
Properties
protected
$supportsPacking bool|null
Indicates if Redis supports packing.
Default: null
protected
$supportsLzf bool|null
Indicates if Redis supports LZF compression.
Default: null
protected
$supportsZstd bool|null
Indicates if Redis supports Zstd compression.
Default: null
Methods
public
pack
(
array
$values
)
:
array|string,string>
Prepares the given values to be used with the eval
command, including serialization and compression.
Parameters
-
$values
array
|string,string>
public
compressed ( ) : bool
Determine if compression is enabled.
public
lzfCompressed ( ) : bool
Determine if LZF compression is enabled.
public
zstdCompressed ( ) : bool
Determine if ZSTD compression is enabled.
public
lz4Compressed ( ) : bool
Determine if LZ4 compression is enabled.
protected
supportsPacking ( ) : bool
Determine if the current PhpRedis extension version supports packing.
protected
supportsLzf ( ) : bool
Determine if the current PhpRedis extension version supports LZF compression.
protected
supportsZstd ( ) : bool
Determine if the current PhpRedis extension version supports Zstd compression.
protected
phpRedisVersionAtLeast ( string $version ) : bool
Determine if the PhpRedis extension version is at least the given version.
Parameters
- $version string