WebStream/Cache/Driver/Memcached.php 1 location
|
@@ 76-80 (lines=5) @@
|
73 |
|
$key = $this->cacheContainer->cachePrefix . $key; |
74 |
|
$result = $this->cacheContainer->driver->get($key); |
75 |
|
|
76 |
|
if ($result !== false) { |
77 |
|
$this->logger->info("Execute cache read: " . $key); |
78 |
|
} else { |
79 |
|
$this->logger->warn("Failed to read cache: " . $key); |
80 |
|
} |
81 |
|
|
82 |
|
return $this->verifyReturnCode($this->cacheContainer->codes['success']) ? $result : null; |
83 |
|
} |
WebStream/Cache/Driver/Redis.php 1 location
|
@@ 75-80 (lines=6) @@
|
72 |
|
$result = $this->cacheContainer->driver->get($key); |
73 |
|
$this->logger->info("Execute cache read: " . $key); |
74 |
|
|
75 |
|
if ($result !== false) { |
76 |
|
$this->logger->info("Execute cache read: " . $key); |
77 |
|
} else { |
78 |
|
$this->logger->warn("Failed to read cache: " . $key); |
79 |
|
$result = null; |
80 |
|
} |
81 |
|
|
82 |
|
return $result; |
83 |
|
} |