• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Show / Hide Table of Contents

Constructor KeyDependency

KeyDependency(String)

Initializes a new instance of the KeyExpiration class that monitors a cache key 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 a cache key 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
DateTime startAfter

KeyDependency(String, KeyDependencyType)

Initializes a new instance of the KeyExpiration class that monitors a cache key 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 a cache key 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
DateTime startAfter
KeyDependencyType keyDependencyType

KeyDependency(String[])

Initializes a new instance of the KeyExpiration class that monitors an array of cache keys 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 cache keys 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
DateTime startAfter

KeyDependency(String[], KeyDependencyType)

Initializes a new instance of the KeyExpiration class that monitors an array of cache keys 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 cache keys 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
DateTime startAfter
KeyDependencyType keyDependencyType
Back to top Copyright © 2017 Alachisoft