1. 首页
  2. 考试认证
  3. 其它
  4. resp Lua的轻量级RESP客户端

resp Lua的轻量级RESP客户端

上传者: 2024-10-13 00:20:57上传 ZIP文件 3.82KB 热度 2次
退休储蓄计划轻量级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 "
用户评论