public Map<String, String> hscan(String key, int count) {
        Map<String, String> m = new HashMap<>();
        int cursor = 0;
        do {
            ScanResult<Entry<String, String>> scanResult = jedisCommands.hscan(key, "" + cursor);
            cursor = Integer.parseInt(scanResult.getCursor());
            for (Entry<String, String> r : scanResult.getResult()) {
                m.put(r.getKey(), r.getValue());
            }
            if (m.size() > count) {
                break;
            }
        } while (cursor > 0);

        return m;
    }
Proxy for the {@link JedisCommands} object.
redis-persistence/src/main/java/com/netflix/conductor/redis/jedis/JedisProxy.java