public RedisTreatmentLog(IImpressionsCache impressionsCache) { this.impressionsCache = impressionsCache; }
public SelfUpdatingTreatmentLog(ITreatmentSdkApiClient apiClient, int interval, IImpressionsCache impressionsCache, int maximumNumberOfKeysToCache = -1) { this.impressionsCache = impressionsCache ?? new InMemoryImpressionsCache(new BlockingQueue <KeyImpression>(maximumNumberOfKeysToCache)); this.apiClient = apiClient; this.interval = interval; }