feat(distlock): implement in-memory lease store

This commit is contained in:
Pasha Sviderski
2026-08-26 16:53:21 +10:00
parent 5a956e72de
commit a5ab6e3788
4 changed files with 403 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
// Package distlock provides distributed, automatically renewed leases across Uncloud machines.
//
// The initial in-memory store does not preserve leases across machine daemon restarts. Cluster membership must remain
// stable while leases are active. Callers must stop protected work when the context returned by Lease.Context is done.
package distlock