Your IP : 18.191.192.250


Current Path : /home/lentoinv/api.lentoria.com/vendor/laravel/framework/src/Illuminate/Cache/
Upload File :
Current File : /home/lentoinv/api.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);
    }
}

?>