首页 > 代码库 > 什么是Jedis?
什么是Jedis?
Jedis 是 Redis 官方首选的 Java 客户端开发包。
实例方法:
1 | import redis.clients.jedis.* | |
1 2 3 | Jedis jedis = new Jedis("localhost"); jedis.set("foo", "bar"); String value = jedis.get("foo"); |
支持的特效:
- Sorting
- Connection handling
- Commands operating on any 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
- Pipelining
- Publish/Subscribe
- Persistence control commands
- Remote server control commands
- Connection pooling
- Sharding (MD5, MurmurHash)
- Key-tags for sharding
- Sharding with pipelining
- Scripting with pipelining
Maven:
1 | redis.clients jedis 2.0.0 jar compile |
API文档:http://tool.oschina.net/apidocs/apidoc?api=jedis-2.1.0
什么是Jedis?
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。