Namespace Polly.Caching
Classes
- AbsoluteTtl
Defines a ttl strategy which will cache items until the specified point-in-time.
- CachePolicy
A cache policy that can be applied to the results of delegate executions.
- CachePolicy<TResult>
A cache policy that can be applied to the results of delegate executions.
- CacheProviderExtensions
Class that provides helper methods for configuring CacheProviders.
- ContextualTtl
Defines a ttl strategy which will cache items for a TimeSpan which may be influenced by data in the execution context.
- DefaultCacheKeyStrategy
The default cache key strategy for CachePolicy. Returns the property Context.ExecutionKey.
- NonSlidingTtl
Represents an ITtlStrategy expiring at an absolute time, not with sliding expiration.
- RelativeTtl
Defines a ttl strategy which will cache items until the specified point-in-time.
- SerializingCacheProviderAsync<TSerialized>
Defines an IAsyncCacheProvider which serializes objects of any type in and out of an underlying cache which caches as type
TSerialized
. For use with asynchronous CachePolicy.
- SerializingCacheProviderAsync<TResult, TSerialized>
Defines an IAsyncCacheProvider<TResult> which serializes objects of type
TResult
in and out of an underlying cache which caches as typeTSerialized
. For use with asynchronous CachePolicy.
- SerializingCacheProvider<TSerialized>
Defines an ISyncCacheProvider which serializes objects of any type in and out of an underlying cache which caches as type
TSerialized
. For use with synchronous CachePolicy.
- SerializingCacheProvider<TResult, TSerialized>
Defines an ISyncCacheProvider<TResult> which serializes objects of type
TResult
in and out of an underlying cache which caches as typeTSerialized
. For use with synchronous CachePolicy.
- SlidingTtl
Defines a ttl strategy which will cache items with a sliding ttl.
Structs
- Ttl
Represents a time-to-live for a given cache item.
Interfaces
- IAsyncCacheProvider
Defines methods for classes providing asynchronous cache functionality for Polly CachePolicys.
- IAsyncCacheProvider<TResult>
Defines methods for classes providing asynchronous cache functionality for Polly CachePolicy<TResult>s.
- ICacheItemSerializer<TResult, TSerialized>
Defines operations for serializing and deserializing values being placed in caches by CachePolicy instances.
- ICacheKeyStrategy
Defines how a CachePolicy should get a string cache key from an execution Context
- ICachePolicy
Defines properties and methods common to all Cache policies.
- ICachePolicy<TResult>
Defines properties and methods common to all Cache policies generic-typed for executions returning results of type
TResult
.
- ISyncCacheProvider
Defines methods for classes providing synchronous cache functionality for Polly CachePolicys.
- ISyncCacheProvider<TResult>
Defines methods for classes providing synchronous cache functionality for Polly CachePolicy<TResult>s.
- ITtlStrategy
Defines a strategy for providing time-to-live durations for cacheable results.