modulepackage
5.1.0+incompatible
Repository: https://github.com/weylan/redsync.git
Documentation: pkg.go.dev
# README
redsync
Distributed mutual exclusion lock using Redis for Go
# Functions
New creates and returns a new Redsync instance from given Redis connection pools.
WithDriftFactor can be used to set the clock drift factor.
WithExpiry can be used to set the expiry of a mutex to the given value.
WithGenValueFunc can be used to set the custom value generator.
WithRetryDelay can be used to set the amount of time to wait between retries.
WithRetryDelayFunc can be used to override default delay behavior.
WithTries can be used to set the number of times lock acquire is attempted.
WithVersion can be used to assign the random value without having to call lock.
# Variables
No description provided by the author
# Interfaces
An Option configures a mutex.
# Type aliases
A DelayFunc is used to decide the amount of time to wait between retries.
OptionFunc is a function that configures a mutex.