You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a lua script to implement a difference function. The specific lua code is as follows. After I execute it with spring boot, I will receive a "MOVED prompt". I don't quite understand why there is this prompt. I just created a temporary key and then used it as sdiff My environment is cluster mode
lua
local key = KEYS[1]
local keyTmp = KEYS[2]
local values = ARGV[1]
local valuesArray = {}
for value in values:gmatch("[^,]+") do
table.insert(valuesArray, value)
end
local ok, result = pcall(function()
redis.call('SADD', keyTmp, unpack(valuesArray))
local res = redis.call('SDIFF', keyTmp, key)
redis.call('DEL', keyTmp)
return {200, "success", res}
end)
if not ok then
return {401, result,{}}
end
return result
The text was updated successfully, but these errors were encountered:
zzalyp
changed the title
I am using a lua script to implement a difference function. The specific lua code is as follows. After I execute it with spring boot, I will receive a "MOVED prompt". I don't quite understand why there is this prompt. I just created a temporary key and then used it as sdiff.
lua script generates moved
May 16, 2024
zzalyp
changed the title
lua script generates moved
Use lua script to prompt moved?
May 16, 2024
zzalyp
changed the title
Use lua script to prompt moved?
[QUESTION] Use lua script to prompt moved?
May 16, 2024
I am using a lua script to implement a difference function. The specific lua code is as follows. After I execute it with spring boot, I will receive a "MOVED prompt". I don't quite understand why there is this prompt. I just created a temporary key and then used it as sdiff
My environment is cluster mode
lua
The text was updated successfully, but these errors were encountered: