- 使用 lua script 是 redis.call/pcall 的参数只能 KEY[n],或者 ARGV[n] n 为正整数,而不能是通过函数传递的参数
- lua script 不能执跨 Redis 节点的命令,例如 KEYS、SCAN 等。
- 在调用 redis command 时需要注意 key 需要落在一个 slot 中,推荐用 hashtag
- lua script 也不是没有问题的,毕竟还是需要加载到内存中的,而不会持久化,可以参照 redis 7.0 出的 function
-
Notifications
You must be signed in to change notification settings - Fork 0
gogogo1024/redis_define_command
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
use lua script with ioredis in cluster mode more convenient
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published