◆ __construct()
BxDolCacheFile::__construct |
( |
| ) |
|
◆ _removeFileIfTtlExpired()
BxDolCacheFile::_removeFileIfTtlExpired |
( |
|
$sFile, |
|
|
|
$iTTL |
|
) |
| |
remove file from dist if TTL expored
- Parameters
-
string | $sFile | - full path to filename |
int | $iTTL | - time to live in seconds |
- Returns
- true if TTL is expired and file is deleted or false otherwise
◆ delData()
BxDolCacheFile::delData |
( |
|
$sKey | ) |
|
Delete cache file.
- Parameters
-
- Returns
- result of the operation
◆ getData()
BxDolCacheFile::getData |
( |
|
$sKey, |
|
|
|
$iTTL = false |
|
) |
| |
Get all data from the cache file.
- Parameters
-
string | $sKey | - file name |
int | $iTTL | - time to live |
- Returns
- the data is got from cache.
◆ getSizeByPrefix()
BxDolCacheFile::getSizeByPrefix |
( |
|
$s | ) |
|
get size of cached data by name prefix
◆ removeAllByPrefix()
BxDolCacheFile::removeAllByPrefix |
( |
|
$s | ) |
|
remove all data from cache by key prefix
- Returns
- true on success
◆ setData()
BxDolCacheFile::setData |
( |
|
$sKey, |
|
|
|
$mixedData, |
|
|
|
$iTTL = false |
|
) |
| |
Save all data in cache file.
- Parameters
-
string | $sKey | - file name |
mixed | $mixedData | - the data to be cached in the file |
int | $iTTL | - time to live |
- Returns
- boolean result of operation.
The documentation for this class was generated from the following file:
- inc/classes/BxDolCacheFile.php