public function destroySession($id) { $this->redis->executeCommand('DEL', [$this->calculateKey($id)]); // @see https://github.com/yiisoft/yii2-redis/issues/82 return true; }