method
public
CacheEngineRedisLight::setNotExists()
Сигнатура
public setNotExists(mixed $key, mixed $ttl, mixed $value) : mixed
Параметры
$key
mixed
$ttl
mixed
$value
mixed
Возвращаемое значение
mixed
Как применяется в CacheEngineRedisLight
CacheEngineRedisLight::setNotExists() — метод класса \Bitrix\Main\Data\CacheEngineRedisLight модуля «Главный модуль».
Метод объекта: сначала нужен экземпляр CacheEngineRedisLight.
use Bitrix\Main\Data\CacheEngineRedisLight;
/** @var CacheEngineRedisLight $object */
$key = null;
$ttl = null;
$value = null;
$result = $object->setNotExists($key, $ttl, $value);
// $result: mixedДругие методы CacheEngineRedisLight
addCleanPath()addToSet()checkInSet()clean()Очищает (удаляет) значение из кеша по ключу (каталог или файл).close()Закрывает открытое соединение.del()delayedDelete()deleteBySet()delFromSet()get()getCachePath()Возвращает ключ кеша (путь) после операции чтения или записи.getConnectionClass()
setNotExists() есть и у других классов модуля «Главный модуль»: CacheEngineApc, CacheEngineMemcache, CacheEngineMemcached, CacheEngineRedis, KeyValueEngine.
Исходный файл: source/main/lib/data/cacheengineredislight.php:91

