Class DNNCacheDependency
DNNCacheDependency provides dependency policies of cache system.
Inheritance
Namespace: DotNetNuke.Services.Cache
Assembly: DotNetNuke.dll
Syntax
public class DNNCacheDependency : IDisposable
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
Constructors
| Improve this Doc View SourceDNNCacheDependency(CacheDependency)
Initializes a new instance of the DNNCacheDependency class.
Declaration
public DNNCacheDependency(CacheDependency systemCacheDependency)
Parameters
Type | Name | Description |
---|---|---|
CacheDependency | systemCacheDependency | The system cache dependency. |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
DNNCacheDependency(String, DateTime)
Initializes a new instance of the DNNCacheDependency class that monitors a file or directory for changes.
Declaration
public DNNCacheDependency(string filename, DateTime start)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The filename. |
DateTime | start | The start. |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
DNNCacheDependency(String)
Initializes a new instance of the DNNCacheDependency class that monitors a file or directory for changes.
Declaration
public DNNCacheDependency(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
DNNCacheDependency(String[], DateTime)
Initializes a new instance of the DNNCacheDependency class that monitors an array of paths (to files or directories) for changes and specifies a time when change monitoring begins.
Declaration
public DNNCacheDependency(string[] filenames, DateTime start)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | filenames | The filenames. |
DateTime | start | The start. |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
DNNCacheDependency(String[], String[], DateTime)
Initializes a new instance of the DNNCacheDependency class that monitors an array of paths (to files or directories), an array of cache keys, or both for changes.
Declaration
public DNNCacheDependency(string[] filenames, string[] cachekeys, DateTime start)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | filenames | The filenames. |
System.String[] | cachekeys | The cachekeys. |
DateTime | start | The start. |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
DNNCacheDependency(String[], String[], DNNCacheDependency, DateTime)
Initializes a new instance of the DNNCacheDependency class that monitors an array of paths (to files or directories), an array of cache keys, or both for changes. It also makes itself dependent upon another instance of the DNNCacheDependency class and a time when the change monitoring begins.
Declaration
public DNNCacheDependency(string[] filenames, string[] cachekeys, DNNCacheDependency dependency, DateTime start)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | filenames | The filenames. |
System.String[] | cachekeys | The cachekeys. |
DNNCacheDependency | dependency | The dependency. |
DateTime | start | The start. |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
DNNCacheDependency(String[], String[], DNNCacheDependency)
Initializes a new instance of the DNNCacheDependency classthat monitors an array of paths (to files or directories), an array of cache keys, or both for changes. It also makes itself dependent upon a separate instance of the DNNCacheDependency class.
Declaration
public DNNCacheDependency(string[] filenames, string[] cachekeys, DNNCacheDependency dependency)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | filenames | The filenames. |
System.String[] | cachekeys | The cachekeys. |
DNNCacheDependency | dependency | The dependency. |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
DNNCacheDependency(String[], String[])
Initializes a new instance of the DNNCacheDependency class that monitors an array of paths (to files or directories), an array of cache keys, or both for changes.
Declaration
public DNNCacheDependency(string[] filenames, string[] cachekeys)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | filenames | The filenames. |
System.String[] | cachekeys | The cachekeys. |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
DNNCacheDependency(String[])
Initializes a new instance of the DNNCacheDependency class that monitors an array of paths (to files or directories) for changes.
Declaration
public DNNCacheDependency(string[] filenames)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | filenames | set the cache depend on muti files. |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
Properties
| Improve this Doc View SourceCacheDependency
Gets the cache dependency.
Declaration
public DNNCacheDependency CacheDependency { get; }
Property Value
Type | Description |
---|---|
DNNCacheDependency |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
CacheKeys
Gets the cache keys.
Declaration
public string[] CacheKeys { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
FileNames
Gets the file names.
Declaration
public string[] FileNames { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
HasChanged
Gets a value indicating whether this instance has changed.
Declaration
public bool HasChanged { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
StartTime
Gets the start time.
Declaration
public DateTime StartTime { get; }
Property Value
Type | Description |
---|---|
DateTime |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
SystemCacheDependency
Gets the system cache dependency.
Declaration
public CacheDependency SystemCacheDependency { get; }
Property Value
Type | Description |
---|---|
CacheDependency |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
UtcLastModified
Gets the UTC last modified.
Declaration
public DateTime UtcLastModified { get; }
Property Value
Type | Description |
---|---|
DateTime |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
Methods
| Improve this Doc View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.
Dispose(Boolean)
DNNCacheDependency provides dependency policies of cache system.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Remarks
The CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.