Example #1
0
        public IDictionary <string, T> GetAll <T>(IEnumerable <string> keys)
        {
            foreach (var client in cacheClients)
            {
                try
                {
                    var result = client.GetAll <T>(keys);
                    if (result != null)
                    {
                        return(result);
                    }
                }
                catch (Exception ex)
                {
                    ExecUtils.LogError(client.GetType(), "Get", ex);
                }
            }

            return(new Dictionary <string, T>());
        }