Skip to content

Method Redis::delete() is deprecated #27

@martijn189

Description

@martijn189

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions