`
m635674608
  • 浏览: 4932009 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Jedis 是 Redis 官方首选的 Java 客户端开发包

    博客分类:
  • java
 
阅读更多

c

实例方法:

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics