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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user