I have a Symfony 5 running and i installed redis with
pecl install redis
composer require snc/redis-bundle
composer require predis/predis
My confg/snc_redis.yml has
snc_redis:
clients:
default:
type: predis
alias: default
dsn: redis://ops_redis_1
and in stalled redis lib through pecl install redis
My code is:
/**
* @Route("/redis/set/{key}/{value}")
*/
public function redisSet(string $key, string $value) {
$this->redisClient->set($key, $value);
return new Response("Adding key " . $key . ' with value ' .$value);
}
I got this error message:
Warning: Declaration of Snc\RedisBundle\Client\Phpredis\Client::zAdd($key, $score1, $value1, $score2 = NULL, $value2 = NULL, $scoreN = NULL, $valueN = NULL) should be compatible with Redis::zAdd($key, $score, $value, ...$extra_args)
What does this means ? That phpredis client is not compatible with native php redis ?
Has anyone faced this before ?