Closed TingluoHuang closed 5 months ago
You can use redis.set_repl() to change replication mode in lua script. Doc: https://redis.io/docs/interact/programmability/lua-api/
redis.set_repl()
I have a lua script that using the redis.set_repl() and hit a compile error with miniredis ERR Error compiling script (new function): :9: attempt to call a non-function object stack traceback: :9: in main chunk [G]: ?
miniredis
ERR Error compiling script (new function): :9: attempt to call a non-function object stack traceback: :9: in main chunk [G]: ?
Maybe we can follow https://github.com/alicebob/miniredis/issues/44 to also ignore the redis.set_repl() command since it's not something miniredis interested.
You can use
redis.set_repl()
to change replication mode in lua script. Doc: https://redis.io/docs/interact/programmability/lua-api/I have a lua script that using the
redis.set_repl()
and hit a compile error withminiredis
ERR Error compiling script (new function): :9: attempt to call a non-function object stack traceback: :9: in main chunk [G]: ?
Maybe we can follow https://github.com/alicebob/miniredis/issues/44 to also ignore the
redis.set_repl()
command since it's not somethingminiredis
interested.