PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace / IValue­Adapter(T) Interface / IValue­Adapter(T) Methods

IValueAdapter<T> Methods

The IValueAdapter<T> generic type exposes the following members.

Methods
  NameDescription
Public methodGetExposedValue
Gets the value that should be exposed to the consuming application, i.e. typically the return value of the cached method.
Public methodGetStoredValue(Object)
Gets the value that should be stored in the cache.
(Inherited from IValueAdapter.)
Public methodGetStoredValue(T)
Gets the value that should be stored in the cache.
Public methodGetStoredValueAsync(Object, CancellationToken)
Asynchronously gets the value that should be stored in the cache.
(Inherited from IValueAdapter.)
Public methodGetStoredValueAsync(T, CancellationToken)
Asynchronously gets the value that should be stored in the cache.
See Also