Is there any way to achieve and implemen this using java program.
Currently I am referring Redis website.
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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.