Documentation ¶
Overview ¶
Package redislock implements locker based on Redis server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock provides redis key locker
func NewByURL ¶
NewByURL returns redis Lock object or error Example "redis://host1:6379,host2:6379/12"
Click to show internal directories.
Click to hide internal directories.