diff --git a/RedisCache.php b/RedisCache.php index b3b6972..89fd857 100644 --- a/RedisCache.php +++ b/RedisCache.php @@ -197,7 +197,7 @@ class RedisCache { foreach ($patterns as $pattern) { - $cursor = NULL; + $cursor = 0;//NULL; foreach ($patterns as $pattern) { $arKeys = []; @@ -383,7 +383,7 @@ class RedisCache $result = Yii::$app->redis->keys(self::calculateKey('del:*')); foreach ($result as $val) { - $cursor = null; + $cursor = 0;//null; $key = str_replace(self::prefix(), '', $val); $pattern = '*'; $arKeys = []; diff --git a/composer.json b/composer.json index ea5aa84..1c6d9d1 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "require": { "yiisoft/yii2-redis": "~2.0.0", "yiisoft/yii2": "~2.0.0", - "predis/predis": "^2.3" + "predis/predis": "^3.0.1" }, "autoload": { "psr-4": {