Constructor KeyDependency
KeyDependency(String)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes based on the update or remove operation performed and taking effect instantly.
Declaration
public KeyDependency(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
KeyDependency(String, DateTime)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes based on the update or remove operation performed and taking effect instantly corresponding to the datetime specified.
Declaration
public KeyDependency(string key, DateTime startAfter)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.DateTime | startAfter |
KeyDependency(String, KeyDependencyType)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes based on the operation performed (that is specified by keyDependencyType argument) and taking effect instantly.
Declaration
public KeyDependency(string key, KeyDependencyType keyDependencyType)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
KeyDependencyType | keyDependencyType |
KeyDependency(String, DateTime, KeyDependencyType)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes based on the operation performed (that is specified by keyDependencyType argument) and taking effect instantly corresponding to the datetime specified.
Declaration
public KeyDependency(string key, DateTime startAfter, KeyDependencyType keyDependencyType)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.DateTime | startAfter | |
KeyDependencyType | keyDependencyType |
KeyDependency(String[])
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes based on the update or remove operation performed and taking effect instantly.
Declaration
public KeyDependency(string[] keys)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | keys |
KeyDependency(String[], DateTime)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes based on the update or remove operation performed and taking effect instantly corresponding to the datetime specified.
Declaration
public KeyDependency(string[] keys, DateTime startAfter)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | keys | |
System.DateTime | startAfter |
KeyDependency(String[], KeyDependencyType)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes based on the operation performed (that is specified by keyDependencyType argument) and taking effect instantly.
Declaration
public KeyDependency(string[] keys, KeyDependencyType keyDependencyType)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | keys | |
KeyDependencyType | keyDependencyType |
KeyDependency(String[], DateTime, KeyDependencyType)
Initializes a new instance of the KeyExpiration class that monitors an array of file paths (to files or directories), an array of cache keys, or both for changes based on the operation performed (that is specified by keyDependencyType argument) and taking effect instantly corresponding to the datetime specified.
Declaration
public KeyDependency(string[] keys, DateTime startAfter, KeyDependencyType keyDependencyType)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | keys | |
System.DateTime | startAfter | |
KeyDependencyType | keyDependencyType |