CacheLockProvider Class
A lock provider that leverages the cache to create semaphores
Constructor
CacheLockProvider
()
Methods
acquire
(
-
name -
[options={}] -
cb
Attempts to acquire the lock with the given name.
Parameters:
-
nameString -
[options={}]Object optional-
[payload]Object optional -
[timeout]Integer optional
-
-
cbFunction
get
(
-
name -
cb
Retrieves the payload for the lock
Parameters:
-
nameString -
cbFunction
release
(
-
name -
[options={}] -
cb
Releases the lock
Parameters:
-
nameString -
[options={}]Object optional -
cbFunction
