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); } }
public void Initialize() { if (cacheMode == CacheModeOption.Write) { cache = SharedCacheFactory.Instance.CreateTimeKeyedCache(GetHeader()); } }