File-based Cache driver.
This is the code documentation for the SproutCMS project
Search documentation |
class FileFile-based Cache driver.
Variables
Functions
public __constructvoid $File->__construct ( mixed $directory ); Tests that the storage location is a directory and is writable. public deleteboolean $File->delete ( string $id [, boolean $tag ] ); Deletes a cache item by id or tag public deleteExpiredvoid $File->deleteExpired ( ); Deletes all cache files that are older than the current time. public existsarray $File->exists ( string $id [, bool $tag ] ); Finds an array of files matching the given id or tag. protected expiredbool $File->expired ( string $file ); Check if a cache file has expired by filename. public findarray $File->find ( string $tag ); Finds an array of ids for a given tag. public getNULL|mixed $File->get ( string $id ); Fetches a cache item. This will delete the item if it is expired or if the hash does not match the stored hash. public setbool $File->set ( string $id , string $data [, array $tags , integer $lifetime ] ); Sets a cache item to the given data, tags, and lifetime. |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|