ok

Mini Shell

Direktori : /home2/selectio/www/a1tex.in/vendor/laravel/framework/src/Illuminate/Cache/
Upload File :
Current File : /home2/selectio/www/a1tex.in/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);
    }
}

Zerion Mini Shell 1.0