public async Task Delete_Deleted_IfWasSet() { const string key = nameof(Delete_Deleted_IfWasSet); await _cacheStorage.SetAsync(key, 1); await _cacheStorage.DropAsync(key); Assert.False((await _cacheStorage.GetAsync <int>(key)).HasValue); }
public async Task PublishAsync(MonthLogChanged notification, CancellationToken cancellationToken) { var cacheKey = GetCacheKey(notification.When); await _cacheStorage.DropAsync(cacheKey, cancellationToken); }