phpBB

Development Wiki

Difference between revisions of "PhpBB4/Caching Component"

From phpBB Development Wiki

(Created page with '== Key/Value Cache == Should the ttl be definable on a key level? Or should there be a global setting? <php>interface KeyValueCacheInterface { // incomplete! public functio…')
 
Line 12: Line 12:
 
}</php>
 
}</php>
  
=== NullKeyValueCache ===
+
=== Null ===
 
Simply throws away values after the request.
 
Simply throws away values after the request.
  
=== FileKeyValueCache ===
+
=== File ===
  
  
=== MemcacheKeyValueCache ===
+
=== Memcache ===
  
  
=== APCKeyValueCache ===
+
=== APC ===
  
  
=== EAcceleratorKeyValueCache ===
+
=== EAccelerator ===
  
  
=== XCacheKeyValueCache ===
+
=== XCache ===

Revision as of 03:17, 23 November 2009

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