feat: implement jetstream memstore core behavior

This commit is contained in:
Joseph Doherty
2026-02-23 06:00:10 -05:00
parent cae09f9091
commit 64e3b1bd49
4 changed files with 84 additions and 0 deletions

View File

@@ -5,5 +5,7 @@ namespace NATS.Server.JetStream.Storage;
public interface IStreamStore
{
ValueTask<ulong> AppendAsync(string subject, ReadOnlyMemory<byte> payload, CancellationToken ct);
ValueTask<StoredMessage?> LoadAsync(ulong sequence, CancellationToken ct);
ValueTask PurgeAsync(CancellationToken ct);
ValueTask<StreamState> GetStateAsync(CancellationToken ct);
}