Example #1
0
        public static Dictionary <string, string> GetValuesMap(this CSRedis.CSRedisClient redis, string[] keys)
        {
            var valuesArr = redis.MGet(keys);
            Dictionary <string, string> result = new Dictionary <string, string>(valuesArr.Length);

            for (int i = 0; i < valuesArr.Length; i++)
            {
                result.Add(keys[i], valuesArr[i]);
            }
            return(result);
        }