Ejemplo n.º 1
0
 public CachePackage()
 {
     this.identifier = "root";
     this.Flush();
     this.openSourceDocumentCache = new SizeSensitiveCache("openDocumentCache" + this.suffix);
     this.openDocumentPrioritizer = new OpenDocumentSensitivePrioritizer(this.openSourceDocumentCache);
     this.diskCache = new DiskCache();
 }
Ejemplo n.º 2
0
		public CachePackage()
		{
			this.identifier = "root";
			this.Flush();
			this.openSourceDocumentCache = new SizeSensitiveCache("openDocumentCache" + this.suffix);
			this.openDocumentPrioritizer = new OpenDocumentSensitivePrioritizer(this.openSourceDocumentCache);
			this.diskCache = new DiskCache();
		}
Ejemplo n.º 3
0
 public CachePackage()
 {
     identifier = "root";
     Flush();
     openSourceDocumentCache = new SizeSensitiveCache("openDocumentCache" + suffix);
     openDocumentPrioritizer = new OpenDocumentSensitivePrioritizer(openSourceDocumentCache);
     diskCache = new DiskCache();
 }
Ejemplo n.º 4
0
		public DiskCacheFuture(DiskCache cache, IFuture future)
		{
			this.cache = cache;
			this.future = future;
		}
Ejemplo n.º 5
0
		private void WriteRecord(DiskCache.DeferredWriteRecord record)
		{
			try
			{
				long increment;
				this.presentDiskDispatcher.WriteObject(record.result, record.freshPath, out increment);
				Monitor.Enter(this);
				try
				{
					this.IncrementFreshCount(increment);
				}
				finally
				{
					Monitor.Exit(this);
				}
			}
			catch (WriteObjectFailedException ex)
			{
				D.Sayf(1, "disk cache write failed; ignoring: {0}", new object[]
				{
					ex
				});
			}
			record.Dispose();
		}
Ejemplo n.º 6
0
		public DiskCachePrototype(DiskCache cache, IFuturePrototype prototype)
		{
			this.cache = cache;
			this.prototype = prototype;
		}
Ejemplo n.º 7
0
 public DiskCachePrototype(DiskCache cache, IFuturePrototype prototype)
 {
     this.cache     = cache;
     this.prototype = prototype;
 }
Ejemplo n.º 8
0
 public DiskCacheFuture(DiskCache cache, IFuture future)
 {
     this.cache  = cache;
     this.future = future;
 }