You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disposing and then creating a new cache is problematic at times. Having a Clear() method resolves that.
I think adding ICacheProvider.Clear() is the best way to do this. But here is code that works:
publicstaticvoidExClear(thisIAppCacheservice){IMemoryCache?provider=service.CacheProvider.GetPrivateFieldValue<IMemoryCache>("cache");if(providerisMemoryCachememoryCache)memoryCache.Clear();elseTrap.Break();// need to find a solution for this!!!}
The text was updated successfully, but these errors were encountered:
Disposing and then creating a new cache is problematic at times. Having a
Clear()
method resolves that.I think adding
ICacheProvider.Clear()
is the best way to do this. But here is code that works:The text was updated successfully, but these errors were encountered: