PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace

PostSharp.Patterns.Caching.ValueAdapters Namespace

This namespace contains the abstractions that allow to cache types like Stream or IEnumerable, which could not be cached without adaptation.
Classes
  ClassDescription
Public classValueAdapter<T>
An abstract implementation of IValueAdapter<T>.
Public classValueAdapterFactory
Registers and provides value adapters (IValueAdapter), which allow for instance to cache things like Stream or IEnumerable, which could not be otherwise cached.
Interfaces
  InterfaceDescription
Public interfaceIValueAdapter
Wraps uncachable classes or interfaces into cacheable objects, for instance an IEnumerable may be wrapped into an array.
Public interfaceIValueAdapter<T>
A strongly-typed version of IValueAdapter.