We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0d201c commit fceb1cdCopy full SHA for fceb1cd
options.go
@@ -23,6 +23,7 @@ func WithRedsyncOptions(options ...redsync.Option) LockerOption {
23
}
24
25
26
+// WithKeyPrefix is a LockerOption for adding a prefix to the lock key
27
func WithKeyPrefix(prefix string) LockerOption {
28
return func(locker *redisLocker) {
29
locker.keyPrefix = prefix
0 commit comments