public IDictionary <string, T> GetAll <T>(IEnumerable <string> keys) { if (keys == null || keys.Count() == 0) { throw new ArgumentNullException(nameof(keys)); } return(_cache.GetAll <T>(keys)); }
/// <summary> /// Gets all. /// </summary> /// <returns>The all.</returns> /// <param name="cacheKeys">Cache keys.</param> /// <typeparam name="T">The 1st type parameter.</typeparam> public override IDictionary <string, CacheValue <T> > BaseGetAll <T>(IEnumerable <string> cacheKeys) { ArgumentCheck.NotNullAndCountGTZero(cacheKeys, nameof(cacheKeys)); if (_options.EnableLogging) { _logger?.LogInformation($"GetAll : cacheKeys = {string.Join(",", cacheKeys)}"); } return(_cache.GetAll <T>(cacheKeys)); }
/// <summary> /// Gets all. /// </summary> /// <returns>The all.</returns> /// <param name="cacheKeys">Cache keys.</param> /// <typeparam name="T">The 1st type parameter.</typeparam> public override IDictionary <string, CacheValue <T> > BaseGetAll <T>(IEnumerable <string> cacheKeys) { ArgumentCheck.NotNullAndCountGTZero(cacheKeys, nameof(cacheKeys)); Logger?.LogDebug("GetAll : cacheKeys = {0}", string.Join(",", cacheKeys)); return(_cache.GetAll <T>(cacheKeys)); }
/// <summary> /// Gets all. /// </summary> /// <returns>The all.</returns> /// <param name="cacheKeys">Cache keys.</param> /// <typeparam name="T">The 1st type parameter.</typeparam> public IDictionary <string, CacheValue <T> > GetAll <T>(IEnumerable <string> cacheKeys) { ArgumentCheck.NotNullAndCountGTZero(cacheKeys, nameof(cacheKeys)); if (_options.EnableLogging) { _logger?.LogInformation($"GetAll : cacheKeys = {string.Join(",", cacheKeys)}"); } var keys = new List <string>(); foreach (var item in cacheKeys) { keys.Add(BuildCacheKey(this._name, item)); } return(_cache.GetAll <T>(keys)); }