stanley-king před 4 roky
rodič
revize
a4a5edd077
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      core/framework/cache/cache.redis.php

+ 4 - 1
core/framework/cache/cache.redis.php

@@ -181,11 +181,14 @@ class CacheRedis extends Cache
         if (!$this->enable) return false;
         $this->type = $prefix;
         if ($key == '*' || is_null($key)) {
+            Log::record("hget 1 ",Log::DEBUG);
             return $this->handler->hGetAll($this->_key($name));
         } elseif (strpos($key,',') != false) {
+            Log::record("hget 2 ",Log::DEBUG);
             return $this->handler->hmGet($this->_key($name), explode(',',$key));
         } else {
-            return $this->handler->hget($this->_key($name), $key);
+            Log::record("hget 3 " . $this->_key($name),Log::DEBUG);
+            return $this->handler->hGet($this->_key($name), $key);
         }
     }