60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
|
name: CacheLock
|
||
|
class_comment: null
|
||
|
dependencies: []
|
||
|
properties:
|
||
|
- name: store
|
||
|
visibility: protected
|
||
|
comment: '# * The cache store implementation.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @var \Illuminate\Contracts\Cache\Store'
|
||
|
methods:
|
||
|
- name: __construct
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: store
|
||
|
- name: name
|
||
|
- name: seconds
|
||
|
- name: owner
|
||
|
default: 'null'
|
||
|
comment: "# * The cache store implementation.\n# *\n# * @var \\Illuminate\\Contracts\\\
|
||
|
Cache\\Store\n# */\n# protected $store;\n# \n# /**\n# * Create a new lock instance.\n\
|
||
|
# *\n# * @param \\Illuminate\\Contracts\\Cache\\Store $store\n# * @param string\
|
||
|
\ $name\n# * @param int $seconds\n# * @param string|null $owner\n# * @return\
|
||
|
\ void"
|
||
|
- name: acquire
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Attempt to acquire the lock.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return bool'
|
||
|
- name: release
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Release the lock.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return bool'
|
||
|
- name: forceRelease
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Releases this lock regardless of ownership.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return void'
|
||
|
- name: getCurrentOwner
|
||
|
visibility: protected
|
||
|
parameters: []
|
||
|
comment: '# * Returns the owner value written into the driver for this lock.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return mixed'
|
||
|
traits: []
|
||
|
interfaces: []
|