Class: Storage_Filesource file: /Storage/Storage_File.phpA file-based implementation of the Storage_Interface. This class provides a caching mechanism that uses files on disk for storage. It employs file locking to ensure proper functionality under heavy load. In a concurrent environment, an exclusive lock is acquired when writing to a cache file, ensuring that reads wait until the write operation is complete before fetching the cached data. Author(s):
License:Copyright:
Implements interfaces:Class methodsconstructor __construct()void __construct ( string $path , [ string $extension = '' ] ) Constructor of the class.
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 ] ) The data will be stored in a file on disk at the path specified in the constructor, having the name:
(where Therefore, a cache file for the key
See Zebra_Cache::set() for full documentation. Implementation of:
|