From fe57edd9e87832dbd14ea8ffd2dc2f16ac1ceb6f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 20 Sep 2015 12:38:35 -0400 Subject: Add abstract cache layer --- app/Core/Cache.php | 58 ------------------------------------------------------ 1 file changed, 58 deletions(-) delete mode 100644 app/Core/Cache.php (limited to 'app/Core/Cache.php') diff --git a/app/Core/Cache.php b/app/Core/Cache.php deleted file mode 100644 index 670a76e0..00000000 --- a/app/Core/Cache.php +++ /dev/null @@ -1,58 +0,0 @@ -container = $container; - $this->init(); - } - - /** - * Proxy cache - * - * Note: Arguments must be scalar types - * - * @access public - * @param string $container Container name - * @param string $method Container method - * @return mixed - */ - public function proxy($container, $method) - { - $args = func_get_args(); - $key = 'proxy_'.implode('_', $args); - $result = $this->get($key); - - if ($result === null) { - $result = call_user_func_array(array($this->container[$container], $method), array_splice($args, 2)); - $this->set($key, $result); - } - - return $result; - } -} -- cgit v1.2.3