1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CacheEngineRedisLight
Граф наследования:CacheEngineRedisLight:
CacheEngineRedis KeyValueEngine CacheEngineInterface CacheEngineInterface CacheEngineStatInterface

Открытые члены

 __construct (array $options=[])
 clean ($baseDir, $initDir=false, $filename=false)
 write ($vars, $baseDir, $initDir, $filename, $ttl)
 read (&$vars, $baseDir, $initDir, $filename, $ttl)
Открытые члены унаследованные от CacheEngineRedis
 getConnectionName ()
 set ($key, $ttl, $value)
 get ($key)
 del ($key)
 setNotExists ($key, $ttl, $value)
 checkInSet ($key, $value)
 addToSet ($key, $value)
 getSet ($key)
 deleteBySet ($key, $prefix='')
 delFromSet ($key, $member)
 addCleanPath (array $data)
 delayedDelete ()
Открытые члены унаследованные от KeyValueEngine
 getReadBytes ()
 getWrittenBytes ()
 getCachePath ()
 close ()
 isAvailable ()
 isCacheExpired ($path)

Дополнительные унаследованные члены

Открытые статические члены унаследованные от CacheEngineRedis
static getConnectionClass ()
Поля данных унаследованные от KeyValueEngine
const BX_BASE_LIST = 'BL:'
const BX_INIT_DIR_LIST = 'IL:'
Защищенные члены унаследованные от CacheEngineRedis
 configure ($options=[])
Защищенные члены унаследованные от KeyValueEngine
 lock (string $key='', int $ttl=0)
 unlock (string $key='')
 getPartition ($key)
 getInitDirKey ($baseDirVersion, $baseDir, $initDir)
 getBaseDirKey ($baseDir)
 getKeyPrefix ($baseDirVersion, $initDirVersion)
 getInitDirVersion ($baseDir, $initDir=false, bool $create=true)
 getBaseDirVersion ($baseDir)
Защищенные данные унаследованные от KeyValueEngine
string $sid = 'BX'
bool $useLock = false
int $ttlMultiplier = 2
int $ttlOld = 60
bool $old = false
bool $fullClean = false
int $written = 0
int $read = 0
string $path = ''
Статические защищенные данные унаследованные от KeyValueEngine
static $engine = null
static array $locks = []
static bool $isConnected = false
static array $baseDirVersion = []
static array $initDirPartitions = []
static int $clusterGroup = 0

Подробное описание

См. определение в файле cacheengineredislight.php строка 5

Конструктор(ы)

◆ __construct()

__construct ( array $options = [])

CacheEngine constructor.

Аргументы
array$optionsCache options.

Переопределяет метод предка KeyValueEngine.

См. определение в файле cacheengineredislight.php строка 7

Методы

◆ clean()

clean ( $baseDir,
$initDir = false,
$filename = false )

Cleans (removes) the value from the cache by the key (directory or file).

Аргументы
string$baseDirBase cache directory (usually /bitrix/cache).
string$initDirDirectory within base.
string$filenameFile name.
Возвращает
void

Переопределяет метод предка KeyValueEngine.

См. определение в файле cacheengineredislight.php строка 13

◆ 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&$varsCached result.
string$baseDirBase cache directory (usually /bitrix/cache).
string$initDirDirectory within base.
string$filenameFile name.
integer$ttlExpiration period in seconds.
Возвращает
boolean

Переопределяет метод предка KeyValueEngine.

См. определение в файле cacheengineredislight.php строка 100

◆ write()

write ( $vars,
$baseDir,
$initDir,
$filename,
$ttl )

Writes the value into the cache by the key.

Аргументы
mixed$varsCached result.
string$baseDirBase cache directory (usually /bitrix/cache).
string$initDirDirectory within base.
string$filenameFile name.
integer$ttlExpiration period in seconds.
Возвращает
void

Переопределяет метод предка KeyValueEngine.

См. определение в файле cacheengineredislight.php строка 75


Объявления и описания членов класса находятся в файле: