alicebob / miniredis

Pure Go Redis server for Go unittests
MIT License
3.1k stars 217 forks source link

Ignore `redis.set_repl` in miniredis #367

Closed TingluoHuang closed 5 months ago

TingluoHuang commented 7 months ago

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 with 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.