예제 #1
0
 public void Initialize(string identityCode, BarItemType barType, Guid cacheId, CacheTypeOption cacheType)
 {
     if (cacheMode == CacheModeOption.Read || cacheMode == CacheModeOption.ReadWrite)
     {
         cache = SharedCacheFactory.Instance.LoadTimeKeyedCache(identityCode, barType, cacheId, cacheType);
     }
 }
예제 #2
0
 public void Initialize()
 {
     if (cacheMode == CacheModeOption.Write)
     {
         cache = SharedCacheFactory.Instance.CreateTimeKeyedCache(GetHeader());
     }
 }