aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/php/vendor/react/cache/src/ArrayCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'assets/php/vendor/react/cache/src/ArrayCache.php')
-rwxr-xr-xassets/php/vendor/react/cache/src/ArrayCache.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/assets/php/vendor/react/cache/src/ArrayCache.php b/assets/php/vendor/react/cache/src/ArrayCache.php
deleted file mode 100755
index 03dcc15..0000000
--- a/assets/php/vendor/react/cache/src/ArrayCache.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-namespace React\Cache;
-
-use React\Promise;
-
-class ArrayCache implements CacheInterface
-{
- private $data = array();
-
- public function get($key)
- {
- if (!isset($this->data[$key])) {
- return Promise\reject();
- }
-
- return Promise\resolve($this->data[$key]);
- }
-
- public function set($key, $value)
- {
- $this->data[$key] = $value;
- }
-
- public function remove($key)
- {
- unset($this->data[$key]);
- }
-}