/// <summary>
 /// full constructor
 /// </summary>
 /// <param name="region"></param>
 /// <param name="system">the Prevalance container class</param>
 public PrevalenceCache(string region, CacheSystem system)
 {
     this.region = region;
     this.system = system ?? new CacheSystem();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Full constructor.
 /// </summary>
 /// <param name="region">The cache region name.</param>
 /// <param name="system">The Prevalance container class.</param>
 public PrevalenceCache(string region, CacheSystem system)
 {
     this.region = region;
     this.system = system ?? new CacheSystem();
 }
Exemplo n.º 3
0
 private void SetupEngine()
 {
     engine = PrevalenceActivator.CreateTransparentEngine(typeof(CacheSystem), dataDir);
     system = engine.PrevalentSystem as CacheSystem;
     taker  = new SnapshotTaker(engine, TimeSpan.FromMinutes(5), CleanUpAllFilesPolicy.Default);
 }
Exemplo n.º 4
0
 private void SetupEngine()
 {
     engine = PrevalenceActivator.CreateTransparentEngine(typeof (CacheSystem), dataDir);
     system = engine.PrevalentSystem as CacheSystem;
     taker = new SnapshotTaker(engine, TimeSpan.FromMinutes(5), CleanUpAllFilesPolicy.Default);
 }
 /// <summary>
 /// Full constructor.
 /// </summary>
 /// <param name="region">The cache region name.</param>
 /// <param name="system">The Prevalance container class.</param>
 public PrevalenceCache(string region, CacheSystem system)
     : base(region, system)
 {
 }
		/// <summary>
		/// full constructor
		/// </summary>
		/// <param name="region"></param>
		/// <param name="system">the Prevalance container class</param>
		public PrevalenceCache(string region, CacheSystem system)
		{
			_region = region;
			_system = (system == null) ? new CacheSystem() : system;
		}