Which way should I use to install phpredis extension?
I'm using Ubuntu 22.04. And I found that the phpredis extension can be installed by 3 ways:
1: Using apt-get to install php-redis
2: Using pecl to install
3: Using pickle to install
If use the second or third way, I have to add "extension=redis.so" to php.ini file And the readme instruction in phpredis repo say that I should use pickle if php version >= 7.3. But I don't see any different between using pecl and pickle. Except that if I use pickle, it require me to adjust some configs but I don't really understand. Here are the configs
use system liblzf (default: ):
use system libsztd (default: ):
use system liblz4 (default: ):
whether to enable sessions (default: yes): yes
whether to enable json serializer support (default: yes): yes
whether to enable igbinary serializer support (default: no): no
whether to enable msgpack serializer support (default: no): no
whether to enable lzf compression (default: no): no
whether to enable Zstd compression (default: no): no
whether to enable lz4 compression (default: no): no
Can someone help me to distinguish those 3 ways. And which way should I use to install phpredis ext? Thank you!
Please or to participate in this conversation.