Help/Answers in C# or VB.net are fine
I have a large project that currently uses system.web.Caching.CacheDependency, example
Dim myCacheDep as new CacheDependency(FilePath)
HttpRuntime.Cache.Insert(key, value, myCacheDep)
Now, i am trying to setup NCache and ideally change minimal lines (but the above occurs in hundreds of places.
Because i need to pass in the NCache.Runtime.Dependencies.CacheDependency
, Doing the following will not work:
Dim myCacheDep as new CacheDependency(FilePath)
Dim nCache As Alachisoft.NCache.Web.Caching.Cache = NCache.InitializeCache("testID")
nCache.Insert(key, value, myCacheDep , absoluteExpiration, slidingExpiration, CacheItemPriority.Default)
Because we are trying to pass a system....CacheDependency
instead of the NCache....CacheDependency
Any suggestions to achieve this, and the cleanest way?
Thank you