我正在使用莴苣驱动程序(版本5.1.3RELEASE)使用Spring数据Redis(版本2.1.1RELEASE)我要使用此模块:https://oss.redislabs.com/redisjson/,但驱动程序似乎不支持它。
我尝试使用execute
方法:
Object response = redisTemplate.execute((RedisCallback<String>) connection -> {
return (String) connection.execute("JSON.GET foo");
});
出现错误:
java.lang.IllegalArgumentException: No enum constant io.lettuce.core.protocol.CommandType.JSON.GET FOO
有没有办法做到这一点?如何使用Redis模块?
我认为Lettuce不支持执行原始命令:How can i run Redis raw commands in Java Lettuce?
您能看到切换到Jedis是否有效?