|
| | __construct ($options=[]) |
| | getReadBytes () |
| | getWrittenBytes () |
| | getCachePath () |
| | isAvailable () |
| | clean ($baseDir, $initDir='', $filename='') |
| | read (&$vars, $baseDir, $initDir, $filename, $ttl) |
| | write ($vars, $baseDir, $initDir, $filename, $ttl) |
| | isCacheExpired ($path) |
| | delayedDelete () |
См. определение в файле cacheenginefiles.php строка 10
◆ __construct()
| __construct |
( |
| $options = [] | ) |
|
Engine constructor.
- Аргументы
-
| array | $options | Cache options. |
См. определение в файле cacheenginefiles.php строка 26
◆ clean()
| clean |
( |
| $baseDir, |
|
|
| $initDir = '', |
|
|
| $filename = '' ) |
Cleans (removes) the value from the cache by the key (directory or file).
- Аргументы
-
| string | $baseDir | Base cache directory (usually /bitrix/cache). |
| string | $initDir | Directory within base. |
| string | $filename | File name. |
- Возвращает
- void
Замещает CacheEngineInterface.
См. определение в файле cacheenginefiles.php строка 137
◆ delayedDelete()
Agent function which deletes marked cache directories.
- Возвращает
- void
См. определение в файле cacheenginefiles.php строка 489
◆ deleteOneDir()
| deleteOneDir |
( |
int | $etime = 0, |
|
|
array | $path = [] ) |
|
protected |
Deletes one cache directory. Works no longer than etime.
- Аргументы
-
| integer | $etime | Timestamp when to stop working. |
| array | $path | Record from b_cache_tag. |
- Возвращает
- void
См. определение в файле cacheenginefiles.php строка 432
◆ getCachePath()
◆ getReadBytes()
◆ getWrittenBytes()
◆ isAvailable()
◆ isCacheExpired()
◆ lock()
Tries to put non-blocking exclusive lock on the file. Returns true if file not exists, or lock was successfully got.
- Аргументы
-
| string | $fileName | Absolute cache file path. |
- Возвращает
- boolean
См. определение в файле cacheenginefiles.php строка 222
◆ randomizeFile()
| randomizeFile |
( |
string | $fileName | ) |
|
|
protected |
Generates very temporary file name by adding some random suffix to the file path. Returns empty string on failure.
- Аргументы
-
| string | $fileName | File path within document root. |
- Возвращает
- string
См. определение в файле cacheenginefiles.php строка 120
◆ read()
| read |
( |
& | $vars, |
|
|
| $baseDir, |
|
|
| $initDir, |
|
|
| $filename, |
|
|
| $ttl ) |
Reads the value from the cache. Returns true if the value exists, not expired, and successfully read.
- Аргументы
-
| mixed | &$vars | Cached result. |
| string | $baseDir | Base cache directory (usually /bitrix/cache). |
| string | $initDir | Directory within base. |
| string | $filename | File name. |
| integer | $ttl | Expiration period in seconds. |
- Возвращает
- boolean
Замещает CacheEngineInterface.
См. определение в файле cacheenginefiles.php строка 250
◆ unlink()
| unlink |
( |
string | $fileName | ) |
|
|
protected |
Deletes physical file. Returns true on success.
- Аргументы
-
| string | $fileName | Absolute physical path. |
- Возвращает
- void
См. определение в файле cacheenginefiles.php строка 96
◆ unlock()
| unlock |
( |
string | $fileName | ) |
|
|
protected |
Releases the lock obtained by lock method.
- Аргументы
-
| string | $fileName | Absolute cache file path. |
- Возвращает
- void
См. определение в файле cacheenginefiles.php строка 238
◆ write()
| write |
( |
| $vars, |
|
|
| $baseDir, |
|
|
| $initDir, |
|
|
| $filename, |
|
|
| $ttl ) |
Writes the value into the cache by the key.
- Аргументы
-
| mixed | $vars | Cached result. |
| string | $baseDir | Base cache directory (usually /bitrix/cache). |
| string | $initDir | Directory within base. |
| string | $filename | File name. |
| integer | $ttl | Expiration period in seconds. |
- Возвращает
- void
Замещает CacheEngineInterface.
См. определение в файле cacheenginefiles.php строка 336
◆ $clusterGroup
◆ $lockHandles
◆ $path
◆ $read
◆ $rootDirectory
◆ $useLock
◆ $written
◆ LOCK_FILE
| const LOCK_FILE = '/bitrix/cache/cacheCleanJob_lock.php' |
|
protected |
Объявления и описания членов класса находятся в файле: