| @@ 90-99 (lines=10) @@ | ||
| 87 | /** |
|
| 88 | * {@inheritdoc} |
|
| 89 | */ |
|
| 90 | public function get($key) |
|
| 91 | { |
|
| 92 | $result = $this->memcached->get($key); |
|
| 93 | ||
| 94 | if (($result === false) && ($this->memcached->getResultCode() === Memcached::RES_NOTFOUND)) { |
|
| 95 | return null; |
|
| 96 | } |
|
| 97 | ||
| 98 | return $result; |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * {@inheritdoc} |
|
| @@ 104-112 (lines=9) @@ | ||
| 101 | /** |
|
| 102 | * {@inheritdoc} |
|
| 103 | */ |
|
| 104 | public function has($key) |
|
| 105 | { |
|
| 106 | $result = $this->memcached->get($key); |
|
| 107 | if (($result === false) && ($this->memcached->getResultCode() === Memcached::RES_NOTFOUND)) { |
|
| 108 | return false; |
|
| 109 | } |
|
| 110 | ||
| 111 | return true; |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * {@inheritdoc} |
|