文件名称:resp:Lua 的轻量级 RESP 客户端
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-26 06:20:23
Lua
退休储蓄计划 轻量级 RESP 客户端 描述 轻量级客户端,可用于与 Redis 服务器交互。 用法 local resp = require ( " resp " ) local client = resp. new ( " localhost " , 6379 ) assert ( " OK " == client: call ( " SET " , " foo " , " 42 " )) assert ( " 42 " == client: call ( " GET " , " foo " )) 流水线 您可以使用queue / commit方法来流水线化命令。 local resp = require ( " resp " ) local client = resp. new ( " localhost " , 6379 ) client: queue ( " ECHO "
【文件预览】:
resp-master
----resp.lua(4KB)
----LICENSE(1KB)
----README.md(2KB)
----resp_test.lua(2KB)