Skip to content

Commit a49ffb1

Browse files
authored
Merge branch 'master' into ssl-options
2 parents 9d13917 + 90583d0 commit a49ffb1

File tree

10 files changed

+286
-48
lines changed

10 files changed

+286
-48
lines changed

.github/wordlist.txt

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
!!!Spelling check failed!!!
22
APM
33
ARGV
4-
BaseObjectPoolConfig
54
BFCommands
5+
BaseObjectPoolConfig
66
BitOP
77
BitPosParams
88
BuilderFactory
@@ -20,10 +20,10 @@ CoreCommands
2020
Dockerfile
2121
EVAL
2222
EVALSHA
23-
Failback
24-
Failover
2523
FTCreateParams
2624
FTSearchParams
25+
Failback
26+
Failover
2727
GSON
2828
GenericObjectPool
2929
GenericObjectPoolConfig
@@ -54,6 +54,7 @@ ListPosition
5454
Ludovico
5555
Magnocavallo
5656
McCurdy
57+
MkDocs
5758
NOSCRIPT
5859
NUMPAT
5960
NUMPT
@@ -65,8 +66,10 @@ OpenTracing
6566
Otel
6667
POJO
6768
POJOs
69+
PoolConfig
6870
PubSub
6971
Queable
72+
README
7073
READONLY
7174
RediSearch
7275
RediSearchCommands
@@ -79,9 +82,11 @@ RedisGraph
7982
RedisInstrumentor
8083
RedisJSON
8184
RedisTimeSeries
85+
Redislabs
8286
SHA
8387
SSLParameters
8488
SSLSocketFactory
89+
SafeEncoder
8590
SearchCommands
8691
SentinelCommands
8792
SentinelConnectionPool
@@ -126,6 +131,7 @@ bool
126131
boolean
127132
booleans
128133
bysource
134+
cd
129135
charset
130136
clientId
131137
clientKill
@@ -135,6 +141,7 @@ clusterKeySlot
135141
configs
136142
consumerName
137143
consumername
144+
csc
138145
cumbersome
139146
dbIndex
140147
dbSize
@@ -159,6 +166,7 @@ geoadd
159166
georadiusByMemberStore
160167
georadiusStore
161168
getbit
169+
github
162170
gmail
163171
groupname
164172
hdel
@@ -171,20 +179,25 @@ hset
171179
hsetnx
172180
hstrlen
173181
http
182+
https
174183
idx
175184
iff
176185
incr
177186
incrBy
178187
incrByFloat
179188
ini
180189
io
190+
jedis
181191
json
192+
kb
182193
keyslot
183194
keyspace
184195
keysvalues
196+
kllayn
185197
kwarg
186198
lastName
187199
lastsave
200+
learningpath
188201
linsert
189202
linters
190203
llen
@@ -197,14 +210,13 @@ makeapullrequest
197210
maxLen
198211
maxdepth
199212
maya
213+
md
200214
memberCoordinateMap
201215
mget
202216
microservice
203217
microservices
204218
millisecondsTimestamp
205-
MkDocs
206219
mkdocs
207-
md
208220
mset
209221
msetnx
210222
multikey
@@ -222,16 +234,18 @@ pexpire
222234
pexpireAt
223235
pfadd
224236
pfcount
237+
pipelining
225238
pmessage
226239
png
227240
pre
241+
produsage
228242
psubscribe
229243
pttl
230244
pubsub
231245
punsubscribe
232246
py
233247
pypi
234-
PoolConfig
248+
qsrk
235249
quickstart
236250
readonly
237251
readwrite
@@ -242,12 +256,10 @@ reinitialization
242256
renamenx
243257
replicaof
244258
repo
245-
README
246259
rpush
247260
rpushx
248261
runtime
249262
sadd
250-
SafeEncoder
251263
scard
252264
scoreMembers
253265
sdiffstore
@@ -270,7 +282,6 @@ strlen
270282
stunnel
271283
subcommands
272284
sunionstore
273-
pipelining
274285
thevalueofmykey
275286
timeseries
276287
toctree
@@ -289,13 +300,16 @@ url
289300
virtualenv
290301
waitReplicas
291302
whenver
303+
wtd
292304
www
293305
xack
294306
xdel
295307
xgroupDelConsumer
296308
xgroupDestroy
297309
xlen
310+
xpx
298311
xtrim
312+
yml
299313
zadd
300314
zcard
301315
zcount
@@ -322,4 +336,3 @@ zrevrangeByScore
322336
zrevrangeByScoreWithScores
323337
zrevrangeWithScores
324338
zunionstore
325-
yml

docs/tutorials_examples.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Tutorials and Examples
2+
3+
## General
4+
5+
* Redis for Java Developers: <https://university.redis.io/learningpath/kllayn0wtd847i>
6+
* Jedis Guide: <https://redis.io/docs/latest/develop/clients/jedis/>
7+
* Connecting to a Redis server: <https://redis.io/docs/latest/develop/clients/jedis/connect/>
8+
* Using Jedis in production: <https://redis.io/docs/latest/develop/clients/jedis/produsage/>
9+
10+
## Client-side Caching
11+
12+
* Client-side Caching: <https://github.com/Redislabs-Solution-Architects/redis-client-side-caching-csc-jedis-demo>
13+
14+
## JSON
15+
16+
* Store, Read and Search JSON: <https://redis.io/kb/doc/1cd7hi2721/learn-to-store-read-and-search-data-in-json-documents-using-jedis>
17+
18+
## Search
19+
20+
* Vector Search: <https://redis.io/kb/doc/13qsrk8xpx/how-to-perform-vector-search-in-java-with-the-jedis-client-library>
21+
* Spring Boot Search: <https://github.com/Redislabs-Solution-Architects/Spring-Boot-RediSearch-Example>

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ nav:
3030
- Failover: failover.md
3131
- FAQ: faq.md
3232
- API Reference: https://www.javadoc.io/doc/redis.clients/jedis/latest/index.html
33+
- Tutorials and Examples: tutorials_examples.md
3334
- Jedis Guide: https://redis.io/docs/latest/develop/connect/clients/java/jedis/
3435
- Redis Command Reference: https://redis.io/docs/latest/commands/
3536

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
<jedis.module.name>redis.clients.jedis</jedis.module.name>
5050
<slf4j.version>1.7.36</slf4j.version>
5151
<resilience4j.version>1.7.1</resilience4j.version>
52-
<jackson.version>2.18.1</jackson.version>
53-
<maven.surefire.version>3.5.1</maven.surefire.version>
52+
<jackson.version>2.18.2</jackson.version>
53+
<maven.surefire.version>3.5.2</maven.surefire.version>
5454
</properties>
5555

5656
<dependencies>
@@ -247,7 +247,7 @@
247247
</plugin>
248248
<plugin>
249249
<artifactId>maven-javadoc-plugin</artifactId>
250-
<version>3.10.1</version>
250+
<version>3.11.2</version>
251251
<configuration>
252252
<source>8</source><!-- Until JDK 11+ -->
253253
<detectJavaApiLink>false</detectJavaApiLink><!-- Until JDK 11+ -->

src/main/java/redis/clients/jedis/BuilderFactory.java

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -975,30 +975,8 @@ public Map<String, CommandDocument> build(Object data) {
975975
}
976976
};
977977

978-
public static final Builder<Map<String, CommandInfo>> COMMAND_INFO_RESPONSE = new Builder<Map<String, CommandInfo>>() {
979-
@Override
980-
public Map<String, CommandInfo> build(Object data) {
981-
if (data == null) {
982-
return null;
983-
}
984-
985-
List<Object> rawList = (List<Object>) data;
986-
Map<String, CommandInfo> map = new HashMap<>(rawList.size());
987-
988-
for (Object rawCommandInfo : rawList) {
989-
if (rawCommandInfo == null) {
990-
continue;
991-
}
992-
993-
List<Object> commandInfo = (List<Object>) rawCommandInfo;
994-
String name = STRING.build(commandInfo.get(0));
995-
CommandInfo info = CommandInfo.COMMAND_INFO_BUILDER.build(commandInfo);
996-
map.put(name, info);
997-
}
998-
999-
return map;
1000-
}
1001-
};
978+
@Deprecated
979+
public static final Builder<Map<String, CommandInfo>> COMMAND_INFO_RESPONSE = CommandInfo.COMMAND_INFO_RESPONSE;
1002980

1003981
public static final Builder<Map<String, LatencyLatestInfo>> LATENCY_LATEST_RESPONSE = new Builder<Map<String, LatencyLatestInfo>>() {
1004982
@Override

src/main/java/redis/clients/jedis/Jedis.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8250,7 +8250,13 @@ public List<KeyValue<String, List<String>>> commandGetKeysAndFlags(String... com
82508250
public Map<String, CommandInfo> commandInfo(String... commands) {
82518251
checkIsInMultiOrPipeline();
82528252
connection.sendCommand(COMMAND, joinParameters(Keyword.INFO.name(), commands));
8253-
return BuilderFactory.COMMAND_INFO_RESPONSE.build(connection.getOne());
8253+
return CommandInfo.COMMAND_INFO_RESPONSE.build(connection.getOne());
8254+
}
8255+
8256+
public Map<String, CommandInfo> command() {
8257+
checkIsInMultiOrPipeline();
8258+
connection.sendCommand(COMMAND);
8259+
return CommandInfo.COMMAND_INFO_RESPONSE.build(connection.getOne());
82548260
}
82558261

82568262
public List<String> commandList() {

src/main/java/redis/clients/jedis/resps/AccessControlLogEntry.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ public AccessControlLogEntry(Map<String, Object> map) {
4747
ageSeconds = (Double) map.get(AGE_SECONDS);
4848
clientInfo = getMapFromRawClientInfo((String) map.get(CLIENT_INFO));
4949
logEntry = map;
50-
entryId = (long) map.get(ENTRY_ID);
51-
timestampCreated = (long) map.get(TIMESTAMP_CREATED);
52-
timestampLastUpdated = (long) map.get(TIMESTAMP_LAST_UPDATED);
50+
// Redis 7.2
51+
entryId = map.containsKey(ENTRY_ID) ? (long) map.get(ENTRY_ID) : -1L;
52+
timestampCreated = map.containsKey(TIMESTAMP_CREATED) ? (long) map.get(TIMESTAMP_CREATED) : -1L;
53+
timestampLastUpdated = map.containsKey(TIMESTAMP_LAST_UPDATED) ? (long) map.get(TIMESTAMP_LAST_UPDATED) : -1L;
5354
}
5455

5556
public long getCount() {

0 commit comments

Comments
 (0)