package
Version:
v0.0.0-...-1d69c33
Opens a new window with list of versions in this module.
Published: Dec 12, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package redislock implements locker based on Redis server
Lock provides redis key locker
New returns redis Lock for redis client
NewByURL returns redis Lock object or error
func (mr *Lock) IsLocked(key interface{}) bool
IsLocked in the redis server
TryLock message as processing
func (mr *Lock) Unlock(key interface{}) error
Unlock message as processing
Source Files
¶
Click to show internal directories.
Click to hide internal directories.