Home
Crypto
Create
<pre> 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" </pre> #redis