summaryrefslogtreecommitdiff
path: root/app/Core/Cache/Base.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-08-21 18:46:34 -0400
committerFrederic Guillot <fred@kanboard.net>2016-08-21 18:46:34 -0400
commit8e83e404fbb1d0dc770e5b41fa315a674541459a (patch)
tree38186a4ef5818133489b41f85f200fa28bed2806 /app/Core/Cache/Base.php
parent836e93546355e20f5a3cca0e2fd4e649264ce7ac (diff)
Add FileCache driver
Diffstat (limited to 'app/Core/Cache/Base.php')
-rw-r--r--app/Core/Cache/Base.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/app/Core/Cache/Base.php b/app/Core/Cache/Base.php
deleted file mode 100644
index d62b8507..00000000
--- a/app/Core/Cache/Base.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-namespace Kanboard\Core\Cache;
-
-/**
- * Base class for cache drivers
- *
- * @package cache
- * @author Frederic Guillot
- */
-abstract class Base
-{
- /**
- * Proxy cache
- *
- * Note: Arguments must be scalar types
- *
- * @access public
- * @param string $class Class instance
- * @param string $method Container method
- * @return mixed
- */
- public function proxy($class, $method)
- {
- $args = func_get_args();
- array_shift($args);
-
- $key = 'proxy:'.get_class($class).':'.implode(':', $args);
- $result = $this->get($key);
-
- if ($result === null) {
- $result = call_user_func_array(array($class, $method), array_splice($args, 1));
- $this->set($key, $result);
- }
-
- return $result;
- }
-}