yingzi 1 년 전
부모
커밋
c1dba7a24b
3개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      Cache/FinanceCache.Class.php
  2. 4 0
      Mall/Framework/Cache/AbstractStorage.Class.php
  3. 0 1
      Mall/Framework/Cache/Redis.Class.php

+ 0 - 1
Cache/FinanceCache.Class.php

@@ -160,7 +160,6 @@ class FinanceCache
     public function getAllSalesOutReceive() {
         $data = [];
         $keysList = $this->cache->keys($this->salesOutReceiveKey.'*');
-        var_dump($keysList);
         foreach ($keysList as $value) {
             $keyArr = explode('::', $value);
             $result = $this->cache->zrangebyscore($this->salesOutReceiveKey.'::'.$keyArr[2], 0,  time(),array('withscores' => TRUE));

+ 4 - 0
Mall/Framework/Cache/AbstractStorage.Class.php

@@ -20,9 +20,13 @@ abstract class AbstractStorage implements StorageInterface
         $prefix = FALSE;
 
         if ($this->options['prefix']) {
+            var_dump($this->options['prefix']);
             $prefix = str_replace(':', '', $this->options['prefix']) . ':';
+            
         }
 
         $this->prefix = $prefix ?: $this->prefix;
+        
+        var_dump($this->prefix);
     }
 }

+ 0 - 1
Mall/Framework/Cache/Redis.Class.php

@@ -576,7 +576,6 @@ class Redis extends Storage
     public function keys($key)
     {
         $key = $this->prefix . $key;
-        var_dump($key);
         return $this->resource->keys($key);
     }