SncRedisBundle
SncRedisBundle copied to clipboard
A Redis bundle for Symfony supporting Predis and PhpRedis
Hello, I've been trying to connect to a Redis server using a full DSN `redis://username:password@host:port/database` but there appears to be a problem detecting the username inside the `PhpredisClientFactory` class in...
Hi, It seems that upgrading to predis 2.0 is causing trouble. I got this error when I tried : ! Symfony\Component\ErrorHandler\Error\ClassNotFoundError {#72 !! #message: """ !! Attempted to load class...
Hi guys, I've been dealing with an issue that is not directly related to this bundle If you want more details https://github.com/phpredis/phpredis/issues/1726 and https://bugs.php.net/bug.php?id=79501 TL;DR with PHP >= 7.4, tls...
phpredis starting from 5.2.0 (https://pecl.php.net/package/redis/5.2.0) supports RedisSentinel https://github.com/phpredis/phpredis/blob/develop/sentinel.markdown#readme
SncRedis config does not support env variables of "json" type, at least for `dsn` property. Example .env ``` REDIS_SENTINELS="[\"redis://redis-sentinel1.dev:26379\", \"redis://redis-sentinel2.dev:26379\", \"redis://redis-sentinel3.dev:26379\"]" ``` Example config ``` snc_redis: clients: default: type: predis...
Hi, it is now needed for this bundle to support passing tls options like verify_peer and ca_file to the client libraries. For PHPRedis the options are documented here: https://github.com/phpredis/phpredis/issues/1600#issuecomment-673362758 And...
I need to be able to do: ``` $redis->setOption(Redis::OPT_SCAN, Redis::SCAN_PREFIX); ``` But right now `PhpredisClientFactory` doesn't allow to do it.
Updated the PhpredisClientFactory to allow for password authentication when using redis sentinel. The default is to use the password set in the parameters password configuration, but also allows for an...
Please correct me if I missed something, but it doesn't look like you can pass any password to a sentinel when using Phpredis. https://github.com/snc/SncRedisBundle/blob/dc5f4438d669f1c52234f1d2b7bc558f8399c58e/src/Factory/PhpredisClientFactory.php#L124-L131 the Phpredis RedisSentinel class allows for...