-2

Is there any way to achieve and implemen this using java program.

Currently I am referring Redis website.

sathya
  • 199
  • 5
  • 26

2 Answers2

2

It is not that hard if you take a good look at the Redis API in detail.

Set<String> hashes = new HashSet<>();
RKeys keys = redisson.getKeys();
keys.getKeys().forEach(key -> {
    if (RType.MAP.equals(keys.getType(key))) {
        hashes.add(key);
    }
});

This is an example written using Redisson as client.

Redisson_RuiGu
  • 1,012
  • 10
  • 13
-2

I have tried using the jedis client .

The below syntax helped to get the list of hashes .

Scan 0 Match FolderName:* count  10000

Its working very well.

sathya
  • 199
  • 5
  • 26