Versions in this module Expand all Collapse all v1 v1.0.0 Apr 13, 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 v1.0.0-alpha1 Apr 13, 2023