public ClusterConfigClientState( [CanBeNull] ISettingsNode localTree, [CanBeNull] RemoteTree remoteTree, [NotNull] RecyclingBoundedCache <ClusterConfigPath, ISettingsNode> cache, long version) { LocalTree = localTree; RemoteTree = remoteTree; Cache = cache; Version = version; }
public void TestSetup() { cache = new RecyclingBoundedCache <string, int>(3); }
public WatcherWrapper(int cacheCapacity, ILog log) { this.log = log; watcherWrappers = new RecyclingBoundedCache <INodeWatcher, Watcher>(cacheCapacity); }
public SocketsHandlerProvider(SocketsTransportSettings settings) { localCache = new RecyclingBoundedCache <TimeSpan, SocketsHttpHandler>(LocalCacheCapacity); localCacheFactory = timeout => globalCache.Obtain(CreateKey(settings, timeout), CreateHandler); }