Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (22 sloc)
565 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Cache; | |
interface LockProvider | |
{ | |
/** | |
* 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); | |
/** | |
* Restore a lock instance using the owner identifier. | |
* | |
* @param string $name | |
* @param string $owner | |
* @return \Illuminate\Contracts\Cache\Lock | |
*/ | |
public function restoreLock($name, $owner); | |
} |