public static bool CacheAction <T>(T item, CacheActionTypes cacheAction) { string cacheKey = GetCacheKey <T>(item); return(true); }
public static void Notify(object item, object message, CacheActionTypes cacheAction) { if (item == null) { return; } List <CacheAction> cacheActionList = new List <CacheAction>(); foreach (CacheBehavior cacheBehavior in CacheConfig.CacheBehaviorList) { if (cacheBehavior.Type == item.GetType()) { cacheActionList.Add(cacheBehavior.CreateCacheAction(item, cacheAction)); } } // TODO: Dispactch to new thread ProcessCacheActionList(cacheActionList); }
public CacheAction SetCacheActionType(CacheActionTypes cacheActionType) { this.CacheActionType = cacheActionType; return(this); }