Add Redis, Wal, Services
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user