YiiRedis icon indicating copy to clipboard operation
YiiRedis copied to clipboard

Method Redis::delete() is deprecated

Open martijn189 opened this issue 9 months ago • 0 comments

When used to store Yii 1 sessions with Redis 7.2, i receive the error "Method Redis::delete() is deprecated".

/var/www/protected/extensions/YiiRedis/ARedisSession.php(80) 78 public function destroySession($id) 79 { 80 $this->_connection->getClient()->delete($this->calculateKey($id)); 81 return true; 82 }

Replacing the delete() with del() fixes the issue

martijn189 avatar May 03 '24 10:05 martijn189