本文主要是介绍[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
这篇关于[ThirdParty]Jedis的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!