34 abstract public function exists($key);
36 public function expired($key, $duration) {
38 if (\is_int($duration) && $duration!==0) {
56 public function store($key, $code,$tag=null, $php=
true) {
59 $content=self::PHP_TAG;
60 $content.=$code .
"\n";
68 abstract protected function storeContent($key,$content,$tag);
75 abstract public function fetch($key);
95 abstract public function remove($key);
100 abstract public function clear();
107 return "Cache system is an instance of <b>".\get_class($this).
"</b>.";
getTimestamp($key)
Returns the timestamp of the last cache update for the given key.
fetch($key)
Fetches data stored for the given key.
Inspired by (c) Rasmus Schultz rasmus@mindplay.dk https://github.com/mindplay-dk/php-annotations ...
clear()
Clears all cache entries.
storeContent($key, $content, $tag)
exists($key)
Check if annotation-data for the key has been stored.
__construct($root, $postfix="")
file_get_contents($key)
return data stored for the given key.
store($key, $code, $tag=null, $php=true)
Caches the given data with the given key.
This class is responsible for storing Arrays in PHP files.