Skip to content

Commit

Permalink
Upgraded dependencies and gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Apr 1, 2022
1 parent ae0bedb commit 9dec36f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ void test() throws Exception {
writer.open(new ExecutionContext());
DataStructure<String> item1 = new DataStructure<>();
item1.setKey("key1");
item1.setAbsoluteTTL(123l);
item1.setTtl(123l);
item1.setType(DataStructure.TYPE_HASH);
Map<String, String> hash1 = Map.of("field1", "value1", "field2", "value2");
item1.setValue(hash1);
DataStructure<String> item2 = new DataStructure<>();
item2.setKey("key2");
item2.setAbsoluteTTL(456l);
item2.setTtl(456l);
item2.setType(DataStructure.TYPE_STREAM);
Map<String, String> hash2 = Map.of("field1", "value1", "field2", "value2");
item2.setValue(hash2);
Expand All @@ -52,8 +52,8 @@ void test() throws Exception {
Assertions.assertEquals(2, keyValues.size());
Assertions.assertEquals(item1.getKey(), keyValues.get(0).getKey());
Assertions.assertEquals(item2.getKey(), keyValues.get(1).getKey());
Assertions.assertEquals(item1.getAbsoluteTTL(), keyValues.get(0).getAbsoluteTTL());
Assertions.assertEquals(item2.getAbsoluteTTL(), keyValues.get(1).getAbsoluteTTL());
Assertions.assertEquals(item1.getTtl(), keyValues.get(0).getTtl());
Assertions.assertEquals(item2.getTtl(), keyValues.get(1).getTtl());
Assertions.assertEquals(item1.getValue(), keyValues.get(0).getValue());
Assertions.assertEquals(item2.getValue(), keyValues.get(1).getValue());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public KeyValueTTLProcessor(Expression expression, EvaluationContext context) {
public T process(T item) {
KeyValue<String, ?> stringKeyValue = new KeyValue<>(
StringCodec.UTF8.decodeKey(ByteArrayCodec.INSTANCE.encodeKey(item.getKey())), item.getValue());
item.setAbsoluteTTL(expression.getValue(context, stringKeyValue, Long.class));
item.setTtl(expression.getValue(context, stringKeyValue, Long.class));
return item;
}

Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
group=com.redis

asciidoctorPluginVersion=3.3.2
bootPluginVersion=2.6.4
bootPluginVersion=2.6.6
kordampPluginVersion=0.47.0
kordampBuildVersion=2.6.0

avroVersion=1.11.0
awaitilityVersion=4.2.0
awsVersion=2.2.6.RELEASE
batchRedisVersion=2.28.0
batchRedisVersion=2.29.0
commonsIoVersion=2.11.0
db2Version=11.5.7.0
fakerVersion=1.0.2
Expand All @@ -17,13 +17,13 @@ googleHttpVersion=1.38.0
jsr305Version=3.0.2
kafkaVersion=7.0.1
latencyutilsVersion=2.0.3
lettucemodVersion=2.15.5
lettucemodVersion=2.16.1
mssqlVersion=10.2.0.jre8
oracleVersion=19.3.0.0
picocliVersion=4.6.3
plexusVersion=3.4.1
progressbarVersion=0.9.3
protobufVersion=3.14.0
sqliteVersion=3.36.0.3
testcontainersRedisVersion=1.5.4
testcontainersRedisVersion=1.5.5
testcontainersVersion=1.15.3
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 9dec36f

Please sign in to comment.