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
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.
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.