|
@@ 63-66 (lines=4) @@
|
| 60 |
|
$this->lazyLoadMemCachedServers(); |
| 61 |
|
|
| 62 |
|
$value = $this->memCached->get($key); |
| 63 |
|
if ($this->memCached->getResultCode() !== Memcached::RES_SUCCESS) { |
| 64 |
|
$this->logger->info("[Memcached] Cache '$key' missed with status " . $this->memCached->getResultCode()); |
| 65 |
|
return null; |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
return $value; |
| 69 |
|
} |
|
@@ 83-85 (lines=3) @@
|
| 80 |
|
|
| 81 |
|
$this->memCached->set($key, $object, $ttl); |
| 82 |
|
$this->logger->info("[Memcached] Set '$key' result " . $this->memCached->getResultCode()); |
| 83 |
|
if ($this->memCached->getResultCode() !== Memcached::RES_SUCCESS) { |
| 84 |
|
$this->logger->error("[Memcached] Set '$key' failed with status " . $this->memCached->getResultCode()); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
return $this->memCached->getResultCode() === Memcached::RES_SUCCESS; |
| 88 |
|
} |