summaryrefslogtreecommitdiff
path: root/app/Core/Cache
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-04 21:11:12 -0500
committerFrederic Guillot <fred@kanboard.net>2016-03-04 21:11:12 -0500
commita7f3e3bec50762f2083f70672a0ba3db533fc8bb (patch)
treec8e9961cb610042acf32e88096abc5fcb3eac4dd /app/Core/Cache
parent38082096909424c23032224365c90aa5189eb6f0 (diff)
PHPdoc cleanup
Diffstat (limited to 'app/Core/Cache')
-rw-r--r--app/Core/Cache/Base.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/Core/Cache/Base.php b/app/Core/Cache/Base.php
index d62b8507..2879f1f1 100644
--- a/app/Core/Cache/Base.php
+++ b/app/Core/Cache/Base.php
@@ -11,6 +11,26 @@ namespace Kanboard\Core\Cache;
abstract class Base
{
/**
+ * Fetch value from cache
+ *
+ * @abstract
+ * @access public
+ * @param string $key
+ * @return mixed Null when not found, cached value otherwise
+ */
+ abstract public function get($key);
+
+ /**
+ * Save a new value in the cache
+ *
+ * @abstract
+ * @access public
+ * @param string $key
+ * @param mixed $value
+ */
+ abstract public function set($key, $value);
+
+ /**
* Proxy cache
*
* Note: Arguments must be scalar types