• Cache (v5.4.0 onwards)
  • Purpose
  • Premise: 'Some proportion of requests may be similar'
  • Working with CacheProviders
  • Operation
  • Syntax
  • Defining CachePolicy
  • Using CachePolicy
  • Parameters
  • cacheProvider
  • ttl
  • ttlStrategy (alternative to ttl above)
  • RelativeTtl
  • AbsoluteTtl
  • SlidingTtl
  • ContextualTtl
  • ResultTtl
  • Default cacheKeyStrategy (if none specified)
  • cacheKeyStrategy (optional)
  • Working with serializers
  • Interacting with policy operation
  • onCacheGet
  • onCacheMiss
  • onCachePut
  • onCacheError
  • onCacheGetError
  • onCachePutError
  • Input parameters for all above delegates
  • Throws
  • Usage recommendations
  • Placement of cache policy within PolicyWrap
  • void executions
  • Caching responses only selectively
  • Caching default(TResult) for value types
  • Thread safety and policy reuse
  • Thread safety
  • Policy reuse
  • Implementing cache providers and serializers
  • Cache providers
  • Creating and using serializers