2017-10-15 18 views

답변

2

Redis API를 자세히 살펴 보는 것이 어렵지 않습니다.

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

이것은 Redisson을 클라이언트로 사용하여 작성한 예입니다.

+0

답장을 보내 주셔서 감사합니다. @ Redisson_RuiGu – sathya

-1

나는 jedis 클라이언트를 사용해 보았습니다.

아래 구문은 해시 목록을 얻는 데 도움이되었습니다.

Scan 0 Match FolderName:* count 10000 

매우 잘 작동합니다.