/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Cache/NoLock.php
67 строк
1 KB
Taylor Otwell
port refresh locks to laravel 13
15 июн 2026, 23:57
15 июн 2026, 23:57
0a1f8c3
Код
Авторство
О чём код?
<?php namespace Illuminate\Cache; class NoLock extends Lock { /** * Attempt to acquire the lock. * * @return bool */ public function acquire() { return true; } /** * Attempt to refresh the lock for the given number of seconds. * * @param int|null $seconds * @return bool */ public function refresh($seconds = null) { return true; } /** * Release the lock. * * @return bool */ public function release() { return true; } /** * Releases this lock in disregard of ownership. * * @return void */ public function forceRelease() { // } /** * Determine if the lock is currently held by any process. * * @return bool */ public function isLocked(): bool { return false; } /** * Returns the owner value written into the driver for this lock. * * @return mixed */ protected function getCurrentOwner() { return $this->owner; } }