在使用Spring Data Redis处理Redis时,我尝试扫描服务器上的哈希数据(类似于CLI中的HSCAN)-
Cursor<Entry<Object,Object>> scan = redisTemplate.opsForHash().scan("student", new ScanOptionsBuilder().count(0).match("*").build());
运行时我遇到了以下错误 -
redis.clients.jedis.exceptions.JedisDataException: ERR syntax error
有人能帮忙解决这个问题吗?
虽然有很多相关的讨论,但没有一个能提供清晰的答案。