PacksPhpRedisValues
trait PacksPhpRedisValues (View source)
Properties
protected bool|null | $supportsPacking | Indicates if Redis supports packing. | |
protected bool|null | $supportsLzf | Indicates if Redis supports LZF compression. | |
protected bool|null | $supportsZstd | Indicates if Redis supports Zstd compression. |
Methods
array | pack(array $values)
Prepares the given values to be used with the | |
bool | compressed()
Determine if compression is enabled. | |
bool | lzfCompressed()
Determine if LZF compression is enabled. | |
bool | zstdCompressed()
Determine if ZSTD compression is enabled. | |
bool | lz4Compressed()
Determine if LZ4 compression is enabled. | |
bool | supportsPacking()
Determine if the current PhpRedis extension version supports packing. | |
bool | supportsLzf()
Determine if the current PhpRedis extension version supports LZF compression. | |
bool | supportsZstd()
Determine if the current PhpRedis extension version supports Zstd compression. | |
bool | phpRedisVersionAtLeast(string $version)
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.
bool compressed()
Determine if compression is enabled.
bool lzfCompressed()
Determine if LZF compression is enabled.
bool zstdCompressed()
Determine if ZSTD compression is enabled.
bool lz4Compressed()
Determine if LZ4 compression is enabled.
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.
protected bool phpRedisVersionAtLeast(string $version)
Determine if the PhpRedis extension version is at least the given version.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Redis/Connections/PacksPhpRedisValues.html