@@ 256-263 (lines=8) @@ | ||
253 | * @override |
|
254 | * @inheritDoc |
|
255 | */ |
|
256 | public function exists($key) |
|
257 | { |
|
258 | if (!$this->open) |
|
259 | { |
|
260 | return Promise::doReject(new ReadException('Cache object is not open.')); |
|
261 | } |
|
262 | return Promise::doResolve(array_key_exists($key, $this->storage)); |
|
263 | } |
|
264 | ||
265 | /** |
|
266 | * @override |
|
@@ 348-355 (lines=8) @@ | ||
345 | * @override |
|
346 | * @inheritDoc |
|
347 | */ |
|
348 | public function getKeys() |
|
349 | { |
|
350 | if (!$this->open) |
|
351 | { |
|
352 | return Promise::doReject(new ReadException('Cache object is not open.')); |
|
353 | } |
|
354 | return Promise::doResolve(array_keys($this->storage)); |
|
355 | } |
|
356 | ||
357 | /** |
|
358 | * @override |