일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- QT
- programming_book
- hbase
- MySQL
- ubuntu
- Java
- comic agile
- leadership
- web
- erlang
- management
- Python
- Italy
- Software Engineering
- Malaysia
- history
- Programming
- essay
- hadoop
- program
- Book review
- RFID
- psychology
- Book
- Linux
- Kuala Lumpur
- agile
- Spain
- django
- France
- Today
- Total
목록Redis (7)
import java.util.Set; import java.util.Iterator; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; public class TestJedisSortedSet{ public static void main(String[] args){ JedisPool pool = new JedisPool(new JedisPoolConfig(), "flatbox"); Jedis jedis = pool.getResource(); try { intELEMENTS_NUM=3; //sorted set final String[]sortedSe..
import java.util.Set; import java.util.Iterator; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; public class TestJedisSet{ public static void main(String[] args){ JedisPool pool = new JedisPool(new JedisPoolConfig(), "flatbox"); Jedis jedis = pool.getResource(); try { intELEMENTS_NUM=3; //set final String[]sets={ "set1", "set2"..
import java.util.Set; import java.util.Iterator; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; public class TestJedisList{ public static void main(String[] args){ final intELEMENTS_NUM=5; JedisPool pool = new JedisPool(new JedisPoolConfig(), "flatbox"); Jedis jedis = pool.getResource(); try { //list final StringsrcKey="list"; ..
import java.util.Set; import java.util.Iterator; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; public class TestJedisList{ public static void main(String[] args){ final intELEMENTS_NUM=5; JedisPool pool = new JedisPool(new JedisPoolConfig(), "flatbox"); Jedis jedis = pool.getResource(); try { //list final StringsrcKey="list"; ..
* src directory: main/java/redis/clients/jedis/Jedis.java 2011/08/11 - [Programming] - Install Jedis on Ubuntu 10.04 import java.util.Set; import java.util.Iterator; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPoolConfig; public class TestJedis{ public static void main(String[] args){ JedisPool pool = new JedisPool(new JedisPoolConfig()..
https://github.com/xetorthio/jedis/wiki Simpler than JRedis (https://github.com/alphazero/jredis) Prerequisite Redis installation: http://redis.io/ Apache commons pool jar file: http://commons.apache.org/pool/download_pool.cgi installation $ git clone git://github.com/xetorthio/jedis.git $ cd jedis jedis$ mvn compile # execute two redis servers for test jedis$ redis-server jedis/conf/redis.conf ..
sudo apt-get install redis-server Couldn't execute redis-cli properly $ sudo apt-get install redis-server $ redis-cli [same result when inputting redis-cli –h 127.0.0.1 –p 6379] usage: redis-cli [-h host] [-p port] [-r repeat_times] [-n db_num] cmd arg1 arg2 arg3 ... argN usage: echo "argN" | redis-cli [-h host] [-p port] [-r repeat_times] [-n db_num] cmd arg1 arg2 ... arg(N-1) If a pipe from st..