54 public function set( $key, $prop, $value ) {
55 $this->cache->setField( $key, $prop, $value );
66 public function has( $key, $prop, $maxAge = 0.0 ) {
67 return $this->cache->hasField( $key, $prop, $maxAge );
79 public function get( $key, $prop ) {
80 return $this->cache->getField( $key, $prop );
90 $this->cache->clear(
$keys );
101 $this->cache->setMaxSize( $maxKeys );
109 return $this->cache->getMaxSize();
Handles a simple LRU key/value map with a maximum number of entries.
Class for process caching individual properties of expiring items.
clear( $keys=null)
Clear one or several cache entries, or all cache entries.
has( $key, $prop, $maxAge=0.0)
Check if a property field exists for a cache entry.
resize( $maxKeys)
Resize the maximum number of cache entries, removing older entries as needed.