Interface IClaimCheckRepository

Assembly: redb.Route.dll

Repository for the Claim Check EIP pattern.
Stores opaque binary data associated with a unique key.
Implementations may provide TTL-based auto-expiry.

public interface IClaimCheckRepository

Methods

Remove(string, CancellationToken)

Explicitly removes data by claim key.

Task Remove(string key, CancellationToken ct = default)

Retrieve(string, CancellationToken)

Retrieves data by claim key without removing it.

Task<byte[]?> Retrieve(string key, CancellationToken ct = default)

RetrieveAndRemove(string, CancellationToken)

Retrieves and removes data by claim key atomically.

Task<byte[]?> RetrieveAndRemove(string key, CancellationToken ct = default)

Store(ReadOnlyMemory<byte>, TimeSpan?, CancellationToken)

Stores data under an auto-generated unique key.

Task<string> Store(ReadOnlyMemory<byte> data, TimeSpan? ttl = null, CancellationToken ct = default)

Store(string, ReadOnlyMemory<byte>, TimeSpan?, CancellationToken)

Stores data under a specific key. Overwrites if key already exists.

Task Store(string key, ReadOnlyMemory<byte> data, TimeSpan? ttl = null, CancellationToken ct = default)