Skip to content
Browse files


  • Loading branch information...
javahongxi committed Sep 21, 2018
1 parent 866f34b commit 1c7c548027368f3fe908276da29823d7bd759f26
Showing with 1 addition and 4 deletions.
  1. 0 mvnw
  2. +1 −4 whatsmars-redis/
  3. BIN whatsmars-redis/jedis.png
0 mvnw 100644 → 100755
No changes.
@@ -3,17 +3,14 @@ Redis is an in-memory database that persists on disk. The data model is key-valu
but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets,
Hashes, HyperLogLogs, Bitmaps.

### Spring Data Redis & Jedis/Lettuce
### Spring Data Redis
- Spring Data’s mission is to provide a familiar and consistent, Spring-based programming model
for data access while still retaining the special traits of the underlying data store.
- SDR对Redis的标准模式和Cluster模式进行了充分封装,但并未对客户端sharding进行良好封装,需要开发者自己实现,
Redis的Java客户端列表,SDR支持Jedis, [Lettuce]( ['lɛtɪs],
Spring Boot 2.x默认使用Lettuce。
- Jedis实例是线程不安全的,在多线程的环境下,需要使用连接池,每个线程都使用自己的Jedis实例,当连接数增多时,
- Jedis相比Lettuce和[Redission](,最大的特点是简单易集成,这从源代码量就可感受到。
- Jedis连接方式如图<br> ![jedis](jedis.png)

### Redis集群方案
Binary file not shown.

0 comments on commit 1c7c548

Please sign in to comment.
You can’t perform that action at this time.