phpBB

Development Wiki

PhpBB4/Caching Component

From phpBB Development Wiki

Revision as of 01:35, 23 November 2009 by Naderman (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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
}

NullKeyValueCache

Simply throws away values after the request.

FileKeyValueCache

MemcacheKeyValueCache

APCKeyValueCache

EAcceleratorKeyValueCache

XCacheKeyValueCache