public CacheState() { this.cloudCache = new ItemCacheCloud(); this.localCache = new ItemCacheLocal( Path.Combine(GetDefaultIronRoot(), "nucache")); int containerCount = Enum.GetValues(typeof(ItemCacheContainer)).Length; this.cloudItems = new HashSet <string> [containerCount]; this.localItems = new HashSet <string> [containerCount]; }
/// <summary> /// Initializes a new instance of the CloudExecutionEngine class. /// </summary> public CloudExecutionEngine() { // Establish various infrastructure. // TODO: Clean this up. this.virtualIronRoot = Directory.GetCurrentDirectory(); string localCacheDirectory = Path.Combine(this.virtualIronRoot, "nucache"); this.cloudCache = new ItemCacheCloud(); this.multiplexedItemCache = new ItemCacheMultiplexer( new ItemCacheLocal(localCacheDirectory), this.cloudCache, null); Console.WriteLine("Accessing execution queue."); this.mainQueue = new CloudExecutionQueue(); }
public CacheState() { this.cloudCache = new ItemCacheCloud(); this.localCache = new ItemCacheLocal( Path.Combine(GetDefaultIronRoot(), "nucache")); }