Esempio n. 1
0
        private static Dictionary <string, string>[] ParseStream(Stream stream)
        {
            object[] response = RedisReader.ReadMultiBulk(stream);

            Dictionary <string, string>[] dicts = new Dictionary <string, string> [response.Length];
            for (int i = 0; i < response.Length; i++)
            {
                object[] hash = response[i] as object[];
                dicts[i] = HashMapper.ToDict(hash);
            }
            return(dicts);
        }
Esempio n. 2
0
 private static Dictionary <string, string> ParseStream(Stream stream)
 {
     string[] fieldValues = RedisReader.ReadMultiBulkString(stream);
     return(HashMapper.ToDict(fieldValues));
 }