[ThirdParty]Jedis
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
作者:W.M.steve
出处:http://www.cnblogs.com/weisteve/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
出处:http://www.cnblogs.com/weisteve/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。