PostSharp6.7//API Reference/Post­Sharp.​Patterns.​Caching.​Backends Namespace/Memory­Cache­Value Class

MemoryCacheValue Class

Meant to be used by caching backends. It's a CacheValue with an extra object that functions as a lock. Do not use this if you're not implementing a CachingBackend.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.Implementation.CacheValue
    PostSharp.Patterns.Caching.Backends.MemoryCacheValue

Namespace:  PostSharp.Patterns.Caching.Backends
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
public class MemoryCacheValue : CacheValue

The MemoryCacheValue type exposes the following members.

Constructors
  NameDescription
Public methodMemoryCacheValue
Initializes a new MemoryCacheValue.
Properties
  NameDescription
Public propertyDependencies
Gets the list of dependencies of the cache.
(Inherited from CacheValue.)
Public propertySync
Gets or sets the mutex that protects this cache key.
Public propertyValue
Gets the cached value.
(Inherited from CacheValue.)
Methods
  NameDescription
Public methodWithValue
Returns a new CacheValue with different Value but identical Dependencies.
(Inherited from CacheValue.)
See Also