trait
Illuminate
/
Cache
/
HasCacheLock
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
HasCacheLock
Methods
public
lock ( $name , $seconds , $owner ) : Lock
Get a lock instance.
Parameters
- $name string
- $seconds int
- $owner string|null
public
restoreLock ( $name , $owner ) : Lock
Restore a lock instance using the owner identifier.
Parameters
- $name string
- $owner string