trait PacksPhpRedisValues (View source)
| 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. |
| 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. |
Prepares the given values to be used with the eval command, including serialization and compression.
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Redis/Connections/PacksPhpRedisValues.html