Browse Source

fix delete processing

h-moriya 8 years ago
parent
commit
fd7a29db13
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/Cache/Engine/RedisEngine.php

+ 6 - 1
src/Cache/Engine/RedisEngine.php

@@ -218,7 +218,12 @@ class RedisEngine extends CacheEngine
         }
         $keys = $this->_Redis->getKeys($this->_config['prefix'] . '*');
 
-        return !in_array(false, $this->deleteMany($keys));
+        $result = [];
+        foreach ($keys as $key) {
+            $result[] = $this->_Redis->delete($key) > 0;
+        }
+
+        return !in_array(false, $result);
     }
 
     /**