public CachePackage() { this.identifier = "root"; this.Flush(); this.openSourceDocumentCache = new SizeSensitiveCache("openDocumentCache" + this.suffix); this.openDocumentPrioritizer = new OpenDocumentSensitivePrioritizer(this.openSourceDocumentCache); this.diskCache = new DiskCache(); }
public CachePackage() { this.identifier = "root"; this.Flush(); this.openSourceDocumentCache = new SizeSensitiveCache("openDocumentCache" + this.suffix); this.openDocumentPrioritizer = new OpenDocumentSensitivePrioritizer(this.openSourceDocumentCache); this.diskCache = new DiskCache(); }
public CachePackage() { identifier = "root"; Flush(); openSourceDocumentCache = new SizeSensitiveCache("openDocumentCache" + suffix); openDocumentPrioritizer = new OpenDocumentSensitivePrioritizer(openSourceDocumentCache); diskCache = new DiskCache(); }
public DiskCacheFuture(DiskCache cache, IFuture future) { this.cache = cache; this.future = future; }
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(); }
public DiskCachePrototype(DiskCache cache, IFuturePrototype prototype) { this.cache = cache; this.prototype = prototype; }
public DiskCachePrototype(DiskCache cache, IFuturePrototype prototype) { this.cache = cache; this.prototype = prototype; }
public DiskCacheFuture(DiskCache cache, IFuture future) { this.cache = cache; this.future = future; }