Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public void Initialize()
        {
            header = GetHeader();

            cacheWriter = SharedCacheFactory.Instance.CacheWriter;
            cacheWriter.RegisterHeader(header);

            cacheReader = SharedCacheFactory.Instance.CacheReader;
            cacheReader.RegisterHeader(header);
        }