FUNCTION LOAD fails with "Invalid library metadata"
erhhung opened this issue · comments
Using the sample function library from the documentation, FUNCTION LOAD
in iredis
fails while it works just fine using regular redis-cli
:
$ iredis
iredis 1.14.0 (Python 3.12.1)
redis-server 7.2.4
Home: https://iredis.xbin.io/
Issues: https://github.com/laixintao/iredis/issues
127.0.0.1:6379> FUNCTION LOAD "#!lua name=mylib \n redis.register_function('myfunc', function(keys, args) return args[1] end)"
(error) ERROR Invalid library metadata
$ redis-cli
127.0.0.1:6379> FUNCTION LOAD "#!lua name=mylib \n redis.register_function('myfunc', function(keys, args) return args[1] end)"
"mylib"
127.0.0.1:6379> FUNCTION DELETE mylib
OK