CacheItem Constructor |
Initializes a new CacheItem.
Namespace: PostSharp.Patterns.Caching.Implementation
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.5.16.0 (6.5.16.0)
C#
public CacheItem( Object value, IImmutableList<string> dependencies = null, CacheItemConfiguration configuration = null )
Parameters
- value
- Type: System.Object
The value to be cached (null is a valid value). - dependencies (Optional)
- Type: IImmutableList<String>
A list of dependencies, or null if there is no dependency. - configuration (Optional)
- Type: PostSharp.Patterns.Caching.Implementation.CacheItemConfiguration
The configuration of the cache item, or null to use the default configuration.