Jedis是一个小巧稳定的redis java客户端。
jedis是一个易用的客户端。
Jedis跟Redis主干代码保持兼容。
Jedis的主要功能点
Redis的下面特性都被支持:
- sorting排序
- connection handling连接保持
- commands operating on all the kind of values
- commands operating on string values
- commands operating on hashes
- commands operating on lists
- commands operating on sets
- commands operating on sorted sets
- transactions
- ipelining
- publish/Subscribe
- persistence control commands
- remote server control commands
- connection pooling
How do I use it?
http://github.com/xetorthio/jedis/downloads
To use it just:
Jedis jedis =newJedis("localhost");
jedis.connect();
jedis.set("foo","bar");
String value = jedis.get("foo");
For more usage examples check the tests. Soon I will add a nice wiki with everything you should know.
And you are done!
Where are the sources?
The project sources are hosted in: http://github.com/xetorthio/jedis
License