public TopicCache(IAmazonSimpleNotificationService client) { _client = client; _cache = new GreenCache <TopicInfo>(ClientContextCacheDefaults.GetCacheSettings()); _nameIndex = _cache.AddIndex("entityName", x => x.EntityName); _durableTopics = new Dictionary <string, TopicInfo>(); }
public QueueCache(IAmazonSQS client, CancellationToken cancellationToken) { _client = client; _cancellationToken = cancellationToken; _cache = new GreenCache <QueueInfo>(ClientContextCacheDefaults.GetCacheSettings()); _nameIndex = _cache.AddIndex("entityName", x => x.EntityName); _durableQueues = new Dictionary <string, QueueInfo>(); }
public QueueCache(IAmazonSQS client) { _client = client; _cache = new GreenCache <QueueInfo>(ClientContextCacheDefaults.GetCacheSettings()); _nameIndex = _cache.AddIndex("entityName", x => x.EntityName); }