Path: redb-route/redb.Route.Cache/ICacheStore.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Cache/ICacheStore.cs
----
namespace redb.Route.Cache;
/// One provider behind both forms of the EIP (scope and component).
internal interface ICacheStore
{
ValueTask GetAsync(string key, CancellationToken ct);
ValueTask SetAsync(string key, CacheEntry entry, TimeSpan? ttl, TimeSpan? sliding, CancellationToken ct);
ValueTask RemoveAsync(string key, CancellationToken ct);
/// Removes every key of a region (keys are region:key).
ValueTask ClearAsync(string region, CancellationToken ct);
}