Documentation
¶
Index ¶
- Variables
- type Config
- type Redis
- func (r *Redis) Close() error
- func (r *Redis) Do(ctx context.Context, commandName string, args ...interface{}) (interface{}, error)
- func (r *Redis) ForceUnLock(ctx context.Context, key string) error
- func (r *Redis) Lock(ctx context.Context, key string) (err error, gotLock bool, lockValue string)
- func (r *Redis) UnLock(ctx context.Context, key, lockValue string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnLockGet = errors.New("lock has already unlocked or expired")
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.