Vitreous.Caching.Abstractions namespace
Interfaces
Section titled “Interfaces”Marks a query as cacheable. Implement this on any IQuery<TResult> to have its
result automatically cached by CachingBehavior.
Marks a command (or query) as one that invalidates cache entries after it succeeds.
Implement this on any ICommand<TResult> or ICommand to have
cache entries removed automatically by CacheInvalidationBehavior.
Abstraction over the underlying cache store.
Register the default implementation (DistributedVitreousCache) for
IDistributedCache-backed caching, or the Redis implementation
(RedisVitreousCache from Vitreous.Caching.Redis) for full
tag-based invalidation support.
Converts cached values to and from bytes. Used by both the IDistributedCache backend
and the Redis backend.