resp Lua的轻量级RESP客户端
退休储蓄计划轻量级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 "
用户评论