phpBB

Development Wiki

PhpBB4/Caching Component

From phpBB Development Wiki

Key/Value Cache

Should the ttl be definable on a key level? Or should there be a global setting?

interface KeyValueCacheInterface
// incomplete!
    
public function read($key);
    public function 
write($key$value$ttl);
    public function 
delete($key);
    public function 
purge();
    public function 
tidy(); // ocassionally called by cron to clean up the cache if necessary
}

Null

Simply throws away values after the request.

File

Memcache

APC

EAccelerator

XCache