32 abstract public function exists($key);
34 public function expired($key, $duration) {
36 if (\is_int($duration) && $duration!==0) {
54 public function store($key, $code,$tag=null, $php=
true) {
57 $content=self::PHP_TAG;
58 $content.=$code .
"\n";
66 abstract protected function storeContent($key,$content,$tag);
73 abstract public function fetch($key);
93 abstract public function remove($key);
98 abstract public function clear();
105 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.