码迷,mamicode.com
首页 > 其他好文 > 详细

什么是Jedis?

时间:2016-11-25 20:31:40      阅读:1144      评论:0      收藏:0      [点我收藏+]

标签:remote   ati   ring   nec   jedis   targe   middle   oschina   list   

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?

标签:remote   ati   ring   nec   jedis   targe   middle   oschina   list   

原文地址:http://www.cnblogs.com/lovebing/p/6102677.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!