Versions in this module Expand all Collapse all v0 v0.1.0 Feb 19, 2026 Changes in this version + const DefaultLeaseTTL + const RedisLeasePrefix + var ErrConflict = errors.New("lease is held by another owner") + type Lease struct + FencingToken string + Key string + TTL time.Duration + func (l *Lease) Expiry(ctx context.Context) (time.Duration, error) + func (l *Lease) Lock(ctx context.Context) error + func (l *Lease) Renew(ctx context.Context) error + func (l *Lease) TryLock(ctx context.Context) error + func (l *Lease) Unlock(ctx context.Context) error + type Manager struct + func NewManager(rds redis.UniversalClient) *Manager + func (m *Manager) Lease(key string) *Lease