Versions in this module Expand all Collapse all v1 v1.1.0 Dec 12, 2023 Changes in this version + func DestroyLock(lock *Lock) error + type Lock struct + func NewLock(address string, password string, db int) (*Lock, error) + func (lock *Lock) Lock(ownerID string, key string, expireSec int) error + func (lock *Lock) TryLock(ownerID string, key string, expireSec int) (bool, error) + func (lock *Lock) Unlock(ownerID string, key string) error