Public Member Functions | |
| getInstance () | |
| __construct () | |
| getCacheFileName ($key) | |
| isSupport () | |
| put ($key, $obj, $valid_time=0) | |
| isValid ($key, $modified_time=0) | |
| get ($key, $modified_time=0) | |
| _delete ($_key) | |
| delete ($key) | |
| truncate () | |
Public Member Functions inherited from CacheBase | |
| get ($key, $modified_time=0) | |
| put ($key, $obj, $valid_time=0) | |
| isValid ($key, $modified_time=0) | |
| isSupport () | |
| truncate () | |
Public Attributes | |
| $cache_dir = 'files/cache/store/' | |
Public Attributes inherited from CacheBase | |
| $valid_time = 36000 | |
| CacheFile::__construct | ( | ) |
| CacheFile::_delete | ( | $_key | ) |
Delete variable from the cache(private)
| string | $_key | Used to store the value. |
Definition at line 146 of file CacheFile.class.php.
| CacheFile::delete | ( | $key | ) |
Delete variable from the cache
| string | $key | Used to store the value. |
Definition at line 162 of file CacheFile.class.php.
| CacheFile::get | ( | $key, | |
$modified_time = 0 |
|||
| ) |
Fetch a stored variable from the cache
| string | $key | The $key used to store the value. |
| int | $modified_time | Not used |
Definition at line 122 of file CacheFile.class.php.
| CacheFile::getCacheFileName | ( | $key | ) |
Get cache file name by key
| string | $key | The key that will be associated with the item. |
Definition at line 50 of file CacheFile.class.php.
| CacheFile::getInstance | ( | ) |
Get instance of CacheFile
Definition at line 24 of file CacheFile.class.php.
| CacheFile::isSupport | ( | ) |
Return whether support or not support cache
Definition at line 60 of file CacheFile.class.php.
| CacheFile::isValid | ( | $key, | |
$modified_time = 0 |
|||
| ) |
Return whether cache is valid or invalid
| string | $key | Cache key |
| int | $modified_time | Not used |
Definition at line 97 of file CacheFile.class.php.
| CacheFile::put | ( | $key, | |
| $obj, | |||
$valid_time = 0 |
|||
| ) |
Cache a variable in the data store
| string | $key | Store the variable using this name. |
| mixed | $obj | The variable to store |
| int | $valid_time | Not used |
Definition at line 73 of file CacheFile.class.php.
| CacheFile::truncate | ( | ) |
Truncate all existing variables at the cache
Definition at line 172 of file CacheFile.class.php.
| CacheFile::$cache_dir = 'files/cache/store/' |
Definition at line 17 of file CacheFile.class.php.
1.8.5