Exemple #1
0
        public static bool CacheAction <T>(T item, CacheActionTypes cacheAction)
        {
            string cacheKey = GetCacheKey <T>(item);



            return(true);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public CacheAction SetCacheActionType(CacheActionTypes cacheActionType)
 {
     this.CacheActionType = cacheActionType;
     return(this);
 }