lua操作redis
local redis = require 'redis'
local client = redis.connect('127.0.0.1', 6379)
local response = client:ping() -- true
for i=100,1000 do
client:zadd("test1",i,i)
client:set("post_"..i,"a"..i)
end
local redis = require 'redis'
local client = redis.connect('127.0.0.1', 6379)
local response = client:ping() -- true
for i=100,1000 do
client:zadd("test1",i,i)
client:set("post_"..i,"a"..i)
end