ok
Direktori : /home2/selectio/public_html/3-idiots/vendor/laravel/framework/src/Illuminate/Cache/ |
Current File : /home2/selectio/public_html/3-idiots/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); } }