/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Cache/FileLock.php
31 строка
620 B
Taylor Otwell
port refresh locks to laravel 13
15 июн 2026, 23:57
15 июн 2026, 23:57
0a1f8c3
Код
Авторство
О чём код?
<?php namespace Illuminate\Cache; class FileLock extends CacheLock { /** * Attempt to acquire the lock. * * @return bool */ public function acquire() { return $this->store->add($this->name, $this->owner, $this->seconds); } /** * Attempt to refresh the lock for the given number of seconds. * * @param int|null $seconds * @return bool */ public function refresh($seconds = null) { return $this->store->refreshIfOwned( $this->name, $this->owner, $seconds ?? $this->seconds ); } }