常梦网 常梦网

redis-lua-debugger

时间: 2024-03-29  热度:

#长沙# OSC源创会第32期(1月10日)正在报名!

rld 是一个非交互的调试工具,用于调试 Redis 的 Lua 脚本,这里有篇详细介绍的文章。

rld 特性包括:

基本使用:

  1. Load rld.lua to Redis once (e.g. redis-cli --eval rld.lua).

  2. Add this line at the beginning of your Lua script: rld.start().

  3. Run your code as usual (e.g. redis-cli --eval prog.lua).

  4. View rld's output in Redis' log file or by subscribing to the rld channel.

API

相关阅读