
Public Member Functions | |
| __construct () | |
| set ($key, $value, $timeout=null) | |
| get ($key, $default=null) | |
| _keyToFile ($key) | |
Info are stored in the 'cache_file_folder' folder. In the folder, 2 subdirectories are created based on the md5 of the key.
| Pluf_Cache_File::__construct | ( | ) |
| Pluf_Cache_File::set | ( | $ | key, | |
| $ | value, | |||
| $ | timeout = null | |||
| ) |
Set a value in the cache.
| string | Key to store the information | |
| mixed | Value to store | |
| int | Timeout in seconds (null) |
Reimplemented from Pluf_Cache.
| Pluf_Cache_File::get | ( | $ | key, | |
| $ | default = null | |||
| ) |
Get value from the cache.
| string | Key to get the information | |
| mixed | Default value to return if cache miss (null) | |
| mixed | Stored value or default |
Reimplemented from Pluf_Cache.
| Pluf_Cache_File::_keyToFile | ( | $ | key | ) |
Convert a key into a path to a file.
| string | Key |