|
1 | 1 | /*
|
2 |
| - * Copyright 2022 dengliming. |
| 2 | + * Copyright 2022-2024 dengliming. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
19 | 19 | import org.redisson.client.codec.StringCodec;
|
20 | 20 | import org.redisson.client.protocol.RedisCommand;
|
21 | 21 | import org.redisson.client.protocol.decoder.ListMultiDecoder2;
|
| 22 | +import org.redisson.client.protocol.decoder.MapKeyDecoder; |
22 | 23 | import org.redisson.client.protocol.decoder.ObjectListReplayDecoder;
|
| 24 | +import org.redisson.client.protocol.decoder.ObjectSetReplayDecoder; |
23 | 25 | import org.redisson.client.protocol.decoder.StringListReplayDecoder;
|
24 | 26 | import org.redisson.command.CommandAsyncExecutor;
|
25 | 27 |
|
|
28 | 30 |
|
29 | 31 | public class RedisConditions {
|
30 | 32 |
|
31 |
| - private static final RedisCommand COMMAND = new RedisCommand<>("COMMAND", |
32 |
| - new ListMultiDecoder2<>(new RedisConditionsDecoder(), new ObjectListReplayDecoder<>(), |
33 |
| - new StringListReplayDecoder())); |
| 33 | + private static final RedisCommand COMMAND = new RedisCommand<>("COMMAND", "LIST", |
| 34 | + new MapKeyDecoder(new ObjectSetReplayDecoder())); |
34 | 35 |
|
35 | 36 | private static final RedisCommand MODULE_LIST = new RedisCommand<>("MODULE", "LIST",
|
36 |
| - new ListMultiDecoder2<>(new ModuleListDecoder(), new ObjectListReplayDecoder<>())); |
| 37 | + new ListMultiDecoder2<>(new ModuleListDecoder(), new ObjectListReplayDecoder<>(), new StringListReplayDecoder())); |
37 | 38 |
|
38 | 39 | private final Set<String> commands;
|
39 | 40 |
|
|
0 commit comments