Class RedisClaimCheckRepository

Assembly: redb.Route.Redis.dll

Redis-backed implementation of .
Uses Redis STRING commands for binary-safe storage with native TTL.
Thread-safe; manages its own connection via .

public sealed class RedisClaimCheckRepository : IClaimCheckRepository, IAsyncDisposable, IDisposable

Inheritance

Object→RedisClaimCheckRepository

Implements

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or

public ValueTask DisposeAsync()

Remove(string, CancellationToken)

Explicitly removes data by claim key.

public Task Remove(string key, CancellationToken ct = default)

Retrieve(string, CancellationToken)

Retrieves data by claim key without removing it.

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

RetrieveAndRemove(string, CancellationToken)

Retrieves and removes data by claim key atomically.

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

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

Stores data under an auto-generated unique key.

public 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.

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

Constructors