@@ -68,7 +68,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -150,7 +150,7 @@ discard block |
||
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 | } |
@@ -42,10 +42,10 @@ discard block |
||
42 | 42 | if (!$this->isAvailableCacheLibrary()) { |
43 | 43 | return false; |
44 | 44 | } |
45 | - $key = $this->cachePrefix . $key; |
|
45 | + $key = $this->cachePrefix.$key; |
|
46 | 46 | |
47 | 47 | $result = $overrite ? apcu_store($key, $value, $ttl) : apcu_add($key, $value, $ttl); |
48 | - $this->logger->info("Execute cache save: " . $key); |
|
48 | + $this->logger->info("Execute cache save: ".$key); |
|
49 | 49 | |
50 | 50 | return $result; |
51 | 51 | } |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | if (!$this->isAvailableCacheLibrary()) { |
59 | 59 | return null; |
60 | 60 | } |
61 | - $key = $this->cachePrefix . $key; |
|
61 | + $key = $this->cachePrefix.$key; |
|
62 | 62 | $value = apcu_fetch($key, $isSuccess); |
63 | 63 | |
64 | 64 | if ($isSuccess) { |
65 | - $this->logger->info("Execute cache read: " . $key); |
|
65 | + $this->logger->info("Execute cache read: ".$key); |
|
66 | 66 | } else { |
67 | - $this->logger->warn("Failed to read cache: " . $key); |
|
67 | + $this->logger->warn("Failed to read cache: ".$key); |
|
68 | 68 | $value = null; |
69 | 69 | } |
70 | 70 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | if (!$this->isAvailableCacheLibrary()) { |
80 | 80 | return false; |
81 | 81 | } |
82 | - $key = $this->cachePrefix . $key; |
|
82 | + $key = $this->cachePrefix.$key; |
|
83 | 83 | |
84 | 84 | return apcu_delete($key); |
85 | 85 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | if (class_exists('\APCUIterator')) { |
97 | - return apcu_delete(new \APCUIterator('/^' . $this->cachePrefix . '/', APC_ITER_KEY)); |
|
97 | + return apcu_delete(new \APCUIterator('/^'.$this->cachePrefix.'/', APC_ITER_KEY)); |
|
98 | 98 | } else { |
99 | 99 | return apcu_clear_cache(); |
100 | 100 | } |