Add Redis, Wal, Services

This commit is contained in:
dingo
2025-11-10 07:42:03 -05:00
parent 7339d537f9
commit 72bc097a71
8 changed files with 386 additions and 25 deletions
+9
View File
@@ -0,0 +1,9 @@
namespace Server.Services;
public interface IZoneLeaseService
{
ValueTask<bool> TryAcquireAsync(ulong zoneId, CancellationToken ct = default);
ValueTask<bool> RenewAsync(ulong zoneId, CancellationToken ct = default);
ValueTask ReleaseAsync(ulong zoneId, CancellationToken ct = default);
bool IsOwner(ulong zoneId);
long CurrentFence(ulong zoneId);
}