Class: Storage_Redissource file: /Storage/Storage_Redis.phpA Redis-based implementation of the Storage_Interface. This class provides a caching mechanism using a Redis server as the backend. It leverages Redis' fast in-memory storage for high-performance caching and supports features like key expiration and atomic operations. When using Redis as a storage engine, PHP must be compiled with the redis extension. Author(s):
License:Copyright:
Implements interfaces:Class methodsconstructor __construct()void __construct ( Redis $redis ) Constructor of the class. Initializes the Redis client and connects to the Redis 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()void has ( string $key ) See Zebra_Cache::has() for documentation. Implementation of:
method set()void set ( string $key , $data , [ int $timeout = 0 ] ) See Zebra_Cache::set() for documentation. Implementation of:
|