public void SetRemoveCurrentNavigationCache() { Web.Common.Helper.InMemoryCache cacheFunc = new Web.Common.Helper.InMemoryCache(); string currNavigationKey = CurrentRole.Name + CurrentRole.ID; List <CMSNavigation> cachedsharingskey = cacheFunc.GET <List <CMSNavigation> >(currNavigationKey); if (cachedsharingskey != null) { cacheFunc.REMOVE(currNavigationKey); } SetCurrentNavigationCache(); }
public void SetRemoveCurrentAllowedControllerActionCache() { Web.Common.Helper.InMemoryCache cacheFunc = new Web.Common.Helper.InMemoryCache(); string currNavigationKey = "_ALLOWEDCONTROLLER_" + CurrentRole.Name + CurrentRole.ID; List <CMSNavigation> cachedsharingskey = cacheFunc.GET <List <CMSNavigation> >(currNavigationKey); if (cachedsharingskey != null) { cacheFunc.REMOVE(currNavigationKey); } SetCurrentAllowedControllerActionCache(); }