Пример #1
0
 private void addList(String key, IList objList)
 {
     if (objList == null)
     {
         return;
     }
     addToContext(key, objList);
     foreach (IEntity obj in objList)
     {
         ContextCache.Put(CacheKey.getObject(obj.GetType(), obj.Id), obj);
     }
     CacheTime.updateList(key);
 }
Пример #2
0
        //---------------------------------------------------

        private void addToContext(String key, Object val)
        {
            ContextCache.Put(key, val);
            logger.Debug("ctx_cache_+=>" + key);
        }