1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00

redis rename key

This commit is contained in:
2023-11-01 16:32:58 +08:00
parent f3918dd02b
commit 5f065de145
3 changed files with 7 additions and 3 deletions

View File

@ -21,4 +21,7 @@ func TestEvalName(t *testing.T) {
_, err := rdb.Eval(context.Background(), "return 1", []string{"a1", "a2", "a3"}, "b1", "b2", "b3").Result()
assert.Nil(t, err, err)
v, err := rdb.FunctionLoadReplace(context.Background(), "#!lua name=mylib\nredis.register_function('myfunc1', function() return 'hello world' end)").Result()
t.Log(v, err)
}