Method AddDependency
AddDependency(String, CacheDependency, Boolean)
Add dependency to the cache item.
Declaration
public virtual bool AddDependency(string key, CacheDependency dependency, bool isResyncRequired)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | key used to reference the required object |
CacheDependency | dependency | CacheDependency to be added |
System.Boolean | isResyncRequired | If set, then at the time of expiration, a fresh copy of the item is fetched from the master data source provided that the read-thru is enabled. Otherwise it is expired as normal. |
Returns
Type | Description |
---|---|
System.Boolean | True if the operation succeeded otherwise false |
AddDependency(String, CacheSyncDependency)
Add CacheSyncDependency to the cache item.
Declaration
[Obsolete("This method is deprecated. 'Please use AddDependency(string key, CacheDependency dependency, bool isResyncRequired)'", false)]
public virtual bool AddDependency(string key, CacheSyncDependency syncDependency)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | key used to reference the required object |
CacheSyncDependency | syncDependency | CacheSyncDependency to be added |
Returns
Type | Description |
---|---|
System.Boolean | True if the operation succeeded otherwise false |