Mon, 2 Jun 2014 11:03 am
ini query #redis nya
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);
		});

	});
});
165
Additional Info: