我正在使用SpringDataRedisTemplate(不是存储库)。一切正常template.opsForValues().get("mykey:1")但是我有一些更复杂的键,比如“myobject:somesituation:1”和“myobject:anothersituation:2”等等。我需要做类似的事情:template.opsForValues().get("myobject:somesituation:*")使用通配符,我想获取“somesituation”中的所有值,无论它的id是什么。使用redis命令行,没问题。观察:我正在使用react模板,不知道(相信)这
我正在使用SpringDataRedisTemplate(不是存储库)。一切正常template.opsForValues().get("mykey:1")但是我有一些更复杂的键,比如“myobject:somesituation:1”和“myobject:anothersituation:2”等等。我需要做类似的事情:template.opsForValues().get("myobject:somesituation:*")使用通配符,我想获取“somesituation”中的所有值,无论它的id是什么。使用redis命令行,没问题。观察:我正在使用react模板,不知道(相信)这