Spec-Zone.ru › Symfony 4.0

Ключ

класс Ключ

Ключ — контейнер для состояния замков в хранилищах.

Методы

__construct(string $resource)
__toString()
hasState(string $stateKey)
setState(string $stateKey, $state)
removeState(string $stateKey)
getState(string $stateKey)
resetLifetime()
reduceLifetime(float $ttl)
float|null getRemainingLifetime()

Возвращает оставшееся время жизни.

bool isExpired()

Подробности

__construct(string $resource)

Параметры

string $resource

__toString()

hasState(string $stateKey)

Параметры

string $stateKey

setState(string $stateKey, $state)

Параметры

string $stateKey
$state

removeState(string $stateKey)

Параметры

string $stateKey

getState(string $stateKey)

Параметры

string $stateKey

resetLifetime()

reduceLifetime(float $ttl)

Параметры

float $ttl задержка истечения срока действия замков в секундах

float|null getRemainingLifetime()

Возвращает оставшееся время жизни.

Значение, возвращаемое функцией

float|null Оставшееся время жизни в секундах. Нулевое значение, когда ключ не истекает.

bool isExpired()

Значение, возвращаемое функцией

bool

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Lock/Key.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API