public TimeKeyedCaching LoadTimeKeyedCache(string identityCode, BarItemType barType, Guid cacheId, CacheTypeOption cacheType) { CacheHeaderInfo header = cacheReader.RequestHeader(identityCode, barType, cacheId, cacheType); cacheReader.RegisterHeader(header); return(new TimeKeyedCaching(header, cacheWriter, cacheReader)); }
public void Initialize() { header = GetHeader(); cacheWriter = SharedCacheFactory.Instance.CacheWriter; cacheWriter.RegisterHeader(header); cacheReader = SharedCacheFactory.Instance.CacheReader; cacheReader.RegisterHeader(header); }