Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory TryLocker for non clustered applications
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis TryLocker for clustered applications
func NewRedis ¶
func NewRedis( cfg *struct { MaxIdle int `inject:"config:commerce.checkout.placeorder.lock.redis.maxIdle"` IdleTimeoutMilliseconds int `inject:"config:commerce.checkout.placeorder.lock.redis.idleTimeoutMilliseconds"` Network string `inject:"config:commerce.checkout.placeorder.lock.redis.network"` Address string `inject:"config:commerce.checkout.placeorder.lock.redis.address"` Database int `inject:"config:commerce.checkout.placeorder.lock.redis.database"` }, ) *Redis
NewRedis creates a new distributed mutex using multiple Redis connection pools.
Click to show internal directories.
Click to hide internal directories.