Home
Crypto
Create
ini query #redis nya <pre> app.get('/page/:page', function(req, res, next) { var blog, page = parseInt(req.params['page']), show = 9, start = (page * show) - show; client.zrevrangebyscore(['blog:posttime','+inf','-inf','LIMIT',start,show], function(err, response){ var multi = client.multi(); for(var a in response){ var key = "blog:content:" + response[a]; multi.hgetall(key); } multi.exec(function(err, replies){ console.log(replies); res.send(replies); }); }); }); </pre>