Redis Jedis lua脚本

参考:http://redisdoc.com/script/eval.html
https://blog.csdn.net/diudiu2025/article/details/86483043
final Jedis jedis = new Jedis("localhost");

String script = "return redis.call('mset',KEYS[1],KEYS[2],ARGV[1],ARGV[2])";
Object v = jedis.eval(script,2,"haha:testkey-2","testValue-1","testkey-2","testValue-2");

posted on 2020-08-29 17:08  卖肾割阑尾  阅读(151)  评论(0编辑  收藏  举报

导航