PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Dependencies Namespace

PostSharp.Patterns.Caching.Dependencies Namespace

This namespaces defines types that represent caching dependencies.
Public classObjectDependency
Wraps an Object into an ObjectDependency. The GetCacheKey() relies on the DefaultKeyBuilder to create the cache key of the wrapped object.
Public classStringDependency
A cache dependency that is already represented as a string.
Public interfaceICacheDependency
Interface that must be implemented by classes that need to be used as cache dependencies, for use with the AddDependency(ICacheDependency) method. Alternatively, custom classes may implement the IFormattable interface or simply the ToString() method.