Your IP : 18.227.140.251


Current Path : /home/lentoinv/test.lentoria.com/vendor/laravel/framework/src/Illuminate/Cache/
Upload File :
Current File : //home/lentoinv/test.lentoria.com/vendor/laravel/framework/src/Illuminate/Cache/HasCacheLock.php

<?php

namespace Illuminate\Cache;

trait HasCacheLock
{
    /**
     * Get a lock instance.
     *
     * @param  string  $name
     * @param  int  $seconds
     * @param  string|null  $owner
     * @return \Illuminate\Contracts\Cache\Lock
     */
    public function lock($name, $seconds = 0, $owner = null)
    {
        return new CacheLock($this, $name, $seconds, $owner);
    }

    /**
     * Restore a lock instance using the owner identifier.
     *
     * @param  string  $name
     * @param  string  $owner
     * @return \Illuminate\Contracts\Cache\Lock
     */
    public function restoreLock($name, $owner)
    {
        return $this->lock($name, 0, $owner);
    }
}

?>