Skip to content

Commit

Permalink
Migrate to the latest lettuce and reactor versions
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Jan 17, 2024
1 parent 0e4213e commit 3e66c13
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ballerina/tests/resources/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.0'

services:
redis-no-ssl:
image: redis:5.0.7
redis-standalone:
image: redis:7.0.0
ports:
- "6379:6379"
- '6379:6379'
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ downloadPluginVersion=5.4.0
releasePluginVersion=2.8.0
ballerinaGradlePluginVersion=2.2.0

lettuceCoreVersion=5.1.2.RELEASE
lettuceCoreVersion=6.3.1.RELEASE
commonsPool2Version=2.11.1

guavaVersion=32.0.0-jre
commonsIoVersion=2.7
nettyVersion=4.1.94.Final
reactorCoreVersion=3.2.2.RELEASE
reactorCoreVersion=3.6.2
reactiveStreamsVersion=1.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private StatefulConnection<K, V> getStatefulRedisConnectionFromPool() throws Red
}
}

private Object getCommandConnection() throws RedisConnectorException {
private BaseRedisCommands<K, V> getCommandConnection() throws RedisConnectorException {
if (isClusterConnection()) {
return getRedisClusterCommands();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public <K, V> long pTtl(K key) throws RedisConnectorException {
}
}

public <K> String randomKey() throws RedisConnectorException {
public <K> K randomKey() throws RedisConnectorException {
RedisKeyCommands<K, String> keyCommands = null;
try {
keyCommands = (RedisKeyCommands<K, String>) connManager.getKeyCommandConnection();
Expand Down

0 comments on commit 3e66c13

Please sign in to comment.