2
2
===============================
3
3
4
4
[ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/io.lettuce/lettuce-core/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/io.lettuce/lettuce-core )
5
+ [ ![ Javadocs] ( https://www.javadoc.io/badge/io.lettuce/lettuce-core.svg )] ( https://www.javadoc.io/doc/io.lettuce/lettuce-core )
6
+ [ ![ MIT licensed] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( ./LICENSE.txt )
7
+ [ ![ Integration] ( https://github.com/redis/lettuce/actions/workflows/integration.yml/badge.svg?branch=main )] ( https://github.com/redis/lettuce/actions/workflows/integration.yml )
8
+ [ ![ codecov] ( https://codecov.io/gh/redis/lettuce/branch/main/graph/badge.svg?token=pAstxAAjYo )] ( https://codecov.io/gh/redis/lettuce )
9
+ [ ![ Discord] ( https://img.shields.io/discord/697882427875393627?style=flat-square )] ( https://discord.gg/redis )
5
10
6
11
Lettuce is a scalable thread-safe Redis client for synchronous,
7
12
asynchronous and reactive usage. Multiple threads may share one connection if they avoid blocking and transactional
@@ -117,8 +122,8 @@ Asynchronous API
117
122
``` java
118
123
StatefulRedisConnection<String , String > connection = client. connect();
119
124
RedisStringAsyncCommands<String , String > async = connection. async();
120
- RedisFuture<String > set = async. set(" key" , " value" )
121
- RedisFuture<String > get = async. get(" key" )
125
+ RedisFuture<String > set = async. set(" key" , " value" );
126
+ RedisFuture<String > get = async. get(" key" );
122
127
123
128
LettuceFutures . awaitAll(set, get) == true
124
129
@@ -150,7 +155,7 @@ Pub/Sub
150
155
``` java
151
156
RedisPubSubCommands<String , String > connection = client. connectPubSub(). sync();
152
157
connection. getStatefulConnection(). addListener(new RedisPubSubListener<String , String > () { ... })
153
- connection. subscribe(" channel" )
158
+ connection. subscribe(" channel" );
154
159
```
155
160
156
161
Building
@@ -177,7 +182,7 @@ $ make test
177
182
Bugs and Feedback
178
183
-----------
179
184
180
- For bugs, questions and discussions please use the [ GitHub Issues] ( https://github.com/lettuce-io /lettuce-core /issues ) .
185
+ For bugs, questions and discussions please use the [ GitHub Issues] ( https://github.com/redis /lettuce/issues ) .
181
186
182
187
License
183
188
-------
0 commit comments