Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Cache/FileLock.php
Строк: 28
<?php

namespace IlluminateCache;

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
        
);
    }
}
Онлайн: 1
Реклама