Skip to content

Vitreous.Caching.Behaviors namespace

CacheInvalidationBehavior<TMessage, TResult>

Pipeline behavior that removes stale cache entries after a successful command. Only active for messages that implement IInvalidatesCache; all other messages pass through unchanged.

CachingBehavior<TMessage, TResult>

Pipeline behavior that short-circuits query execution on a cache hit. Only active for messages that implement ICacheableQuery<TResult>; all other messages pass through unchanged.