Class FileDependency
FileDependency class is use to provide FileDependency features to the Cache User if required if items are dependent on file and on some update with this file those items will be removed from cache
Inherited Members
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class FileDependency : CacheDependency, IDisposable
Name | Description |
---|---|
FileDependency(String) | Initializes a new instance of the FileExpiration class that monitors a file or directory for changes. |
FileDependency(String, DateTime) | Initializes a new instance of the FileExpiration class that monitors a file or directory for changes and indicates when change tracking is to begin. |
FileDependency(String[]) | Initializes a new instance of the FileExpiration class that monitors an array of file paths (to files or directories) for changes. |
FileDependency(String[], DateTime) | Initializes a new instance of the FileExpiration class that monitors an array of file paths (to files or directories) for changes and specifies a time when change monitoring begins. |
Name | Description |
---|---|
fileNames | Get the array of file names |
StartAfterTicks | StartAfterTicks shows the time after which dependency is to be started |