Completed
Push — feature/0.7.0 ( de8513...2857b3 )
by Ryuichi
03:03
created
WebStream/Cache/Driver/Memcached.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         if (!$this->isAvailableCacheLibrary()) {
69 69
             return false;
70 70
         }
71
-        $key = $this->cachePrefix . $key;
71
+        $key = $this->cachePrefix.$key;
72 72
         $result = null;
73 73
 
74 74
         if ($ttl > 0) {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             }
90 90
         }
91 91
 
92
-        $this->logger->info("Execute cache save: " . $key);
92
+        $this->logger->info("Execute cache save: ".$key);
93 93
         $this->verifyReturnCode(\Memcached::RES_SUCCESS);
94 94
 
95 95
         return $result;
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
         if (!$this->isAvailableCacheLibrary()) {
104 104
             return false;
105 105
         }
106
-        $key = $this->cachePrefix . $key;
106
+        $key = $this->cachePrefix.$key;
107 107
         $value = $this->cache->get($key);
108
-        $this->logger->info("Execute cache read: " . $key);
108
+        $this->logger->info("Execute cache read: ".$key);
109 109
 
110 110
         return $this->verifyReturnCode(\Memcached::RES_SUCCESS) ? $value : null;
111 111
     }
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
         if (!$this->isAvailableCacheLibrary()) {
119 119
             return false;
120 120
         }
121
-        $key = $this->cachePrefix . $key;
121
+        $key = $this->cachePrefix.$key;
122 122
         $this->cache->delete($key);
123
-        $this->logger->info("Execute cache cleared: " . $key);
123
+        $this->logger->info("Execute cache cleared: ".$key);
124 124
 
125 125
         return $this->verifyReturnCode(\Memcached::RES_NOTFOUND);
126 126
     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         }
136 136
         $allKeys = $this->cache->getAllKeys();
137 137
         if ($allKeys === false) {
138
-            $this->logger->warn("Can't get cache keys: " . $this->cachePrefix . "*");
138
+            $this->logger->warn("Can't get cache keys: ".$this->cachePrefix."*");
139 139
             $this->cache->flush();
140 140
 
141 141
             return true;
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         }
151 151
 
152 152
         $this->deleteMulti($targetKeys);
153
-        $this->logger->info("Execute all cache cleared: " . $this->cachePrefix . "*");
153
+        $this->logger->info("Execute all cache cleared: ".$this->cachePrefix."*");
154 154
 
155 155
         return $this->verifyReturnCode(\Memcached::RES_NOTFOUND);
156 156
     }
Please login to merge, or discard this patch.