39 abstract public function exists($key);
41 public function expired($key, $duration) {
42 if ($this->
exists ( $key )) {
43 if (\is_int ( $duration ) && $duration !== 0) {
44 return \time () - $this->
getTimestamp ( $key ) > $duration;
61 abstract public function store($key, $code, $tag =
null);
81 abstract public function fetch($key);
103 abstract public function remove($key);
115 return "Cache system is an instance of <b>" . \get_class ( $this ) .
"</b>.";
This class is responsible for storing Arrays in PHP files.
file_get_contents($key)
return data stored for the given key.
fetch($key)
Fetches data stored for the given key.
clear()
Clears all cache entries.
store($key, $code, $tag=null)
Caches the given data with the given key.
exists($key)
Check if annotation-data for the key has been stored.
__construct($root, $postfix='')
getTimestamp($key)
Returns the timestamp of the last cache update for the given key.