Spring boot调用RedisTemplate.execute lua脚本时没有连接字符串

我有一个Spring boot应用程序,并且正在使用Redis。

我通过redisTemplate执行此lua脚本:

local rootKey = tostring(ARGV[1])
local zSetName = tostring(ARGV[2])
local bothStrings = rootKey .. zSetName
return bothStrings

用以下命令执行:

redisTemplate.execute(script, Collections.singletonList("1"),"pointRouteCache", "point");

只返回第一个值,即 "pointRouteCache"。

我期望看到 'pointRouteCachepoint',但我只得到 'pointRouteCache',为什么会这样呢?

我正在使用spring-boot-starter-parent:2.3.4.RELEASE

点赞