Last login: Tue Sep 2 07:54:03 2014 from 10.29.254.123 luqman@dtk-app01:~$ redis-cli redis 127.0.0.1:6379> zrange sms (error) ERR wrong number of arguments for 'zrange' command redis 127.0.0.1:6379> zrange sms 0 1 1) "test" redis 127.0.0.1:6379> zrange sms 0 1 withscores 1) "test" 2) "47" redis 127.0.0.1:6379> zset sms test 1 (error) ERR unknown command 'zset' redis 127.0.0.1:6379> zadd sms test 1 (error) ERR value is not a double redis 127.0.0.1:6379> zadd sms 1 test (integer) 0 redis 127.0.0.1:6379> zrange sms 0 1 withscores 1) "test" 2) "1" redis 127.0.0.1:6379> zadd sms 201406782 test (integer) 0 redis 127.0.0.1:6379> zrange sms 0 1 withscores 1) "test" 2) "201406782"#redis
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); }); }); });
webkoe's stream now using redis --- 22/01/2020 --- webkoe meninggalkan redis karena sangat membebani RAM #redis #webkoe #missioncompleted
hincrby aim like 10