redis-lua-debugger

授权协议 MIT
开发语言 Lua
所属分类 开发工具、 程序调试工具
软件类型 开源软件
地区 不详
投 递 者 雷飞虎
操作系统 Linux
开源组织
适用人群 未知
 软件概览

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

rld 特性包括:

  • 易于安装,只有 6kB

  • 可打印输出到本地和远端

  • 跟踪执行的代码行

  • 先进的数值变化的自动监控机制报告

  • 报告函数调用、返回和参数可进行实时检查

基本使用:

  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

  • rld.start() - starts the debugger

  • rld.stop() - stops the debugger

  • rld.troff() / rld.tron() - toggles tracing off/on

  • rld.options - debugger options, see source for details

  • rld 是一个非交互的调试工具,用于调试 Redis 的 Lua 脚本,这里有篇详细介绍的文章。 rld 特性包括: 易于安装,只有 6kB 可打印输出到本地和远端 跟踪执行的代码行 先进的数值变化的自动监控机制报告 报告函数调用、返回和参数可进行实时检查 文章转载自 开源中国社区 [http://www.oschina.net]

  • How to get redis-cli help? $ redis-cli -h redis-cli 4.0.9 Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]] -h <hostname> Server hostname (default: 127.0.0.1). -p <port> Server port

  • 实验环境: redis: 6.0.9 redis执行lua脚本时, 出错不会回滚(rollback) 我们知道, 使用lua脚本可以在执行一串redis命令时, 实现一定原子性(lua脚本中多条指令执行过程中不会被插入新的指令), 但是并不能在命令执行出错时回滚之前的结果, 如下示例: demo.lua redis.call('get', 'xx') redis.call('set', 'a1'

  • 参考: http://www.redis.cn/commands/eval.html https://www.runoob.com/redis/redis-scripting.html Redis从2.6.0版本开始支持Lua脚本,通过在服务器嵌入Lua环境,Redis客户端可以使用Lua脚本,直接在服务器端原子地执行多个Redis命令。 1.使用Lua脚本的好处: 减少网络开销:可以将多个请求通

  • Redis Commands Clients Documentation Community Download Modules Support redis-cli, the Redis command line interface redis-cli is the Redis command line interface, a simple program that allows to send

  • 1、–raw 参数的用法 按数据原有格式打印数据,不展示额外的类型信息 [work@ ~]$ redis-cli -p 32495 -c set a 1 OK [work@ ~]$ redis-cli -p 32495 -c incr 1 (integer) 1 [work@ ~]$ redis-cli -p 32495 -c incr 1 (integer) 2 [work@ ~]$ redis

  • 一、什么是 Lua ?   Lua 是一个小巧的脚本语言。它是巴西里约热内卢天主教大学(Pontifical Catholic University of Rio de Janeiro)里的一个由 Roberto Ierusalimschy、Waldemar Celes 和 Luiz Henrique de Figueiredo 三人组成的研究小组于 1993 年开发的。其设计目的是为了通过灵活嵌

  • 前言 如果想用Redis实现一些进阶功能的话,lua脚本可能是一个绕不开的话题。 Redis从2.6开始加入了对Lua脚本的支持,可以说Lua脚本的加入极大的拓展了Redis功能。使用Lua脚本至少有以下两个好处: 将复杂的Redis存取逻辑与业务代码独立开 更好的事务性能 Redis从3.2版本开始提供了一个完整的lua脚本调试器。本文将介绍如何使用redis-cli运行lua脚本。 允许远程连

  • https://blog.csdn.net/JineD/article/details/124037249 使用方法: 打开CMD窗口,切换到Redis安装目录后,输入以下命令启动Redis客户端 redis-cli -h 127.0.0.1 -p 6379 命令参数说明: -h <hostname> Server hostname (default: 127.0.0.1).

  • 使用方法: 打开CMD窗口,切换到Redis安装目录后,输入以下命令启动Redis客户端 redis-cli -h 127.0.0.1 -p 6379 命令参数说明: -h <hostname> Server hostname (default: 127.0.0.1). Redis服务IP -p <port> Server port (default: 63

 相关资料
  • redis-lua 是 Redis 的 Lua 语言的客户端开发包。 示例代码: require 'redis'local redis = Redis.connect('127.0.0.1', 6379)local response = redis:ping() -- trueredis:set('usr:nrk', 10)redis:set('usr:nobody', 5)l

  • Nginx与Lua编写脚本的基本构建块是指令执行顺序的图 Nginx 教程 基础 Nginx编译安装 Nginx.conf详解 Location 详解 Nginx基础知识 Nginx高性能WEB服务器详解 Nginx高并发系统内核优化和PHP7配置文件优化 Nginx和PHP-FPM启动脚本 Nginx的11个Phases agentzh 的 Nginx 教程 Nginx 陷阱和常见错误 TCP和

  • 主要内容:第一个Lua脚本命令,为什么使用Lua脚本,常用脚本命令,基本命令应用从 Redis 2.6 版本开始,Redis 使用内置的 Lua 解释器执行脚本,这意味着我们可以直接在 Redis 客户端执行Lua 脚本 ,于此同时 Redis 还非常贴心地提供了用于编写 Lua 脚本的 命令。 第一个Lua脚本命令 Lua 是一种轻量小巧、开源的脚本语言,用标准 C语言编写。其设计目的就是为了嵌入应用程序中,从而为应用程序提供灵活的扩展和定制功能。它被广泛的应用于:游戏开发

  • Lua Redis client driver for Lua Nginx Module based on the cosocket API. Project homepage: https://github.com/agentzh/lua-resty-redis This library is enabled by default. You can specify the --without-l

  • The lua-redis-parser library implements a thin and fast redis raw response parser that constructs corresponding lua data strucutres, as well as a function that constructs redis raw requests. Documenta

  • 问题内容: 有没有人能够使它们一起工作?我已经将5.2很好地工作了,它可以找到lua- redis(redis.lua),但是它无法加载套接字模块,而我似乎无法使用lua(LuaSocket版本2.0.2)。任何人都有任何技巧可以使它正常工作吗? 我尝试过制作luasocket,但是它完全失败了,我认为这是由于我的lua版本5.2。 答案只是恢复到lua 5.1,还是我不知道的另一种解决方法? 问