/// <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 Level1MemoryCfCacheIndex(); Level2Cache.Refresh(); }
/// <summary> /// Used level 1 memory, plus level 2 remote (e.g. Memcached via Windows Azure Worker Role) /// </summary> public static void Initialize(IRemoteCache <CfCacheIndexEntry> level2Cache) { Level1Cache = new Level1MemoryCfCacheIndex(); Level2Cache = level2Cache; }
/// <summary> /// Used 2-tiered memory (only for development purposes) /// </summary> public static void Initialize() { Level1Cache = new Level1MemoryCfCacheIndex(); Level2Cache = new Level2MemoryCfCacheIndex(); }