public IEnumerator <KeyValuePair <string, TValue> > GetEnumerator()
        {
//          return CacheClient
//                      .HashScan(redisKey)
//                      .Select(he => new KeyValuePair<string, TValue>(he.Name.To<string>(), he.Value.To<TValue>()))
//                      .GetEnumerator();
            return(CacheClient
                   .HashGetAll <TValue>(redisKey)
                   .Select(he =>
                           new KeyValuePair <string, TValue>(he.Key, he.Value))
                   .GetEnumerator());
        }
 public IDictionary<string, T> HashGetAll<T>(string hashKey)
 {
     return ExecuteWithRetry(() => cacheClient.HashGetAll<T>(hashKey));
 }