summaryrefslogtreecommitdiff
path: root/app/Core/MemoryCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/MemoryCache.php')
-rw-r--r--app/Core/MemoryCache.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/app/Core/MemoryCache.php b/app/Core/MemoryCache.php
deleted file mode 100644
index f80a66ef..00000000
--- a/app/Core/MemoryCache.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-namespace Core;
-
-class MemoryCache extends Cache
-{
- private $storage = array();
-
- public function init()
- {
- }
-
- public function set($key, $value)
- {
- $this->storage[$key] = $value;
- }
-
- public function get($key)
- {
- return isset($this->storage[$key]) ? $this->storage[$key] : null;
- }
-
- public function flush()
- {
- $this->storage = array();
- }
-
- public function remove($key)
- {
- unset($this->storage[$key]);
- }
-}