Пример #1
0
        /// <summary>
        /// Dispose and re-create our local cash, flush our remote cash & recreate the cache index
        /// </summary>
        /// <param name="entry"></param>
        public static void Refresh()
        {
            Level1Cache.Dispose();
            Level1Cache = null;
            Level1Cache = new Level1MemoryCfPerfCache();

            Level2Cache.Refresh();
        }
Пример #2
0
 /// <summary>
 /// Used level 1 memory, plus level 2 remote (e.g. Memcached via Windows Azure Worker Role)
 /// </summary>
 public static void Initialize(IRemoteCache level2Cache)
 {
     Level1Cache = new Level1MemoryCfPerfCache();
     Level2Cache = level2Cache;
 }
Пример #3
0
 /// <summary>
 /// Used 2-tiered memory (only for development purposes)
 /// </summary>
 public static void Initialize()
 {
     Level1Cache = new Level1MemoryCfPerfCache();
     Level2Cache = new Level2MemoryCfPerfCache();
 }