Exemplo n.º 1
0
 public Options(TimeSpan expire_ttl, TimeSpan outdate_ttl, ushort max_queue_length = ProCache.UNLIMITED_QUEUE_SIZE, ExternalCacheFactory <Tk, ICacheEntry <Tv> > external_cache = null)
 {
     ExternalCache  = external_cache;
     ExpireTtl      = expire_ttl;
     OutdateTtl     = outdate_ttl;
     MaxQueueLength = max_queue_length;
 }
Exemplo n.º 2
0
 public static Options <Tk, Tv> CreateOptions <Tk, Tv>(ExternalCacheFactory <Tk, ICacheEntry <Tv> > external_cache, TimeSpan expire_ttl, TimeSpan outdate_ttl, ushort max_queue_length = ProCache.UNLIMITED_QUEUE_SIZE)
 => new Options <Tk, Tv>(expire_ttl, outdate_ttl, max_queue_length, external_cache);