Example #1
0
 static BrandsCache()
 {
     //TODO: управление настройкой срока кеширования
     _brandsCache = new SingleObjectCache<BrandsCache>(
         null,
         10 );
 }
Example #2
0
        static CatalogItemsCache()
        {
            //_catalogItemsTableCache = new KeyedEntityCache<int, CatalogItem>(
            //    global::RmsAuto.Store.Cms.Properties.Settings.Default.ex_rmsauto_storeConnectionString,
            //    c => c.CatalogItemID );

            _catalogItemsCache = new SingleObjectCache<CatalogItemsDictionary>(
                null/*new string[] { _catalogItemsTableCache.CacheKey }*/,
                0);
        }