public StashedCacheValue(TKey key, TValue value, IExpiryStash <TKey> stash) : base(key, stash) { Contracts.Requires.That(value != null); this.GetValue = value; }
public PoolStash(IPool <TValue> pool, IExpiryStash <TKey> stash) { Contracts.Requires.That(pool != null); Contracts.Requires.That(stash != null); this.pool = pool; this.stash = stash; }
public AbstractStashedCacheValue(TKey key, IExpiryStash <TKey> stash) { Contracts.Requires.That(key != null); Contracts.Requires.That(stash != null); Contracts.Requires.That(!stash.IsDisposed); this.Key = key; this.stash = stash; }
public CacheStashedChunkFactory( IAsyncFactory <TKey, IDisposableValue <TChunk> > factory, IExpiryStash <TKey> stash) { Contracts.Requires.That(factory != null); Contracts.Requires.That(stash != null); this.factory = factory; this.stash = stash; }
public static void TryExpireToken <TKey>(IExpiryStash <TKey> instance) { Contracts.Requires.That(instance != null); Contracts.Requires.That(!instance.IsDisposed); }
public StashedDisposableCacheValue(TKey key, IDisposableValue <TValue> value, IExpiryStash <TKey> stash) : base(key, stash) { Contracts.Requires.That(value != null); this.value = value; }
public static ICacheValue <TKey, TValue> CreateStashed <TKey, TValue>( TKey key, IDisposableValue <TValue> value, IExpiryStash <TKey> stash) => new StashedDisposableCacheValue <TKey, TValue>(key, value, stash);
public static ICacheValue <TKey, TValue> CreateStashed <TKey, TValue>( TKey key, TValue value, IDisposable disposable, IExpiryStash <TKey> stash) => new StashedCompositeCacheValue <TKey, TValue>(key, value, disposable, stash);
public static ICacheValue <TKey, TValue> CreateStashed <TKey, TValue>( TKey key, TValue value, IExpiryStash <TKey> stash) => new StashedCacheValue <TKey, TValue>(key, value, stash);
public static IAsyncFactory <TKey, ICacheValue <TKey, TChunk> > CreateStashed <TKey, TChunk>( IAsyncFactory <TKey, IDisposableValue <TChunk> > factory, IExpiryStash <TKey> stash) => new CacheStashedChunkFactory <TKey, TChunk>(factory, stash);
public StashedCompositeCacheValue(TKey key, TValue value, IDisposable disposable, IExpiryStash <TKey> stash) : base(key, stash) { Contracts.Requires.That(value != null); Contracts.Requires.That(disposable != null); this.GetValue = value; this.disposable = disposable; }