Class: Storage_Memcachedsource file: /Storage/Storage_Memcached.phpA Memcache-based implementation of the Storage_Interface. This class provides a caching mechanism using a Memcached server as the backend. It leverages Memcached's fast in-memory storage for high-performance caching and supports features like key expiration and atomic operations. There are two PHP extensions for working with Memcached: the When using Memcached as a storage engine, PHP must be compiled with either the memcache extension (PHP manual) or the memcached extension (PHP manual). Author(s):
License:Copyright:
Implements interfaces:Class methodsconstructor __construct()void __construct ( mixed $memcache ) Constructor of the class. Initializes the Memcache client and connects to the Memcached server.
Arguments
method delete()void delete ( string $key ) See Zebra_Cache::delete() for documentation. Implementation of:
method get()void get ( string $key ) See Zebra_Cache::get() for documentation. Implementation of:
method has()mixed has ( string $key ) See Zebra_Cache::has() for full documentation. Tags
Implementation of:
method set()void set ( string $key , $data , [ int $timeout = 0 ] ) See Zebra_Cache::set() for documentation. Implementation of:
|