Skip to content

Commit 9ab8bb9

Browse files
authored
Merge pull request #1100 from flynndi/cache-completion
cache-completion
2 parents 2dc5555 + 59675b8 commit 9ab8bb9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

project/jimmer-sql/src/main/java/org/babyfish/jimmer/sql/cache/redis/quarkus/RedisCacheCreator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ private <K, V> SimpleBinder<K, V> redisValueBinder(ImmutableType type) {
116116
return RedisValueBinder
117117
.<K, V> forObject(type)
118118
.publish(args.tracker)
119-
.duration(args.duration)
120119
.objectMapper(args.objectMapper)
120+
.keyPrefixProvider(args.keyPrefixProvider)
121121
.duration(args.duration)
122122
.randomPercent(args.randomDurationPercent)
123123
.redis(args.redisDataSource)
@@ -130,8 +130,8 @@ private <K, V> SimpleBinder<K, V> redisValueBinder(ImmutableProp prop) {
130130
return RedisValueBinder
131131
.<K, V> forProp(prop)
132132
.publish(args.tracker)
133-
.duration(args.duration)
134133
.objectMapper(args.objectMapper)
134+
.keyPrefixProvider(args.keyPrefixProvider)
135135
.duration(args.duration)
136136
.randomPercent(args.randomDurationPercent)
137137
.redis(args.redisDataSource)
@@ -144,8 +144,8 @@ private <K, V> SimpleBinder.Parameterized<K, V> redisHashBinder(ImmutableProp pr
144144
return RedisHashBinder
145145
.<K, V> forProp(prop)
146146
.publish(args.tracker)
147-
.duration(args.duration)
148147
.objectMapper(args.objectMapper)
148+
.keyPrefixProvider(args.keyPrefixProvider)
149149
.duration(args.multiVewDuration)
150150
.randomPercent(args.randomDurationPercent)
151151
.redis(args.redisDataSource)

project/jimmer-sql/src/main/java/org/babyfish/jimmer/sql/cache/redis/spring/RedisCacheCreator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ private <K, V> SimpleBinder<K, V> redisValueBinder(ImmutableType type) {
119119
return RedisValueBinder
120120
.<K, V>forObject(type)
121121
.publish(args.tracker)
122-
.duration(args.duration)
123122
.objectMapper(args.objectMapper)
123+
.keyPrefixProvider(args.keyPrefixProvider)
124124
.duration(args.duration)
125125
.randomPercent(args.randomDurationPercent)
126126
.redis(args.connectionFactory)
@@ -137,9 +137,9 @@ private <K, V> SimpleBinder<K, V> redisValueBinder(ImmutableProp prop) {
137137
return RedisValueBinder
138138
.<K, V>forProp(prop)
139139
.publish(args.tracker)
140-
.duration(args.duration)
141140
.objectMapper(args.objectMapper)
142141
.duration(args.duration)
142+
.keyPrefixProvider(args.keyPrefixProvider)
143143
.randomPercent(args.randomDurationPercent)
144144
.redis(args.connectionFactory)
145145
.build()
@@ -155,8 +155,8 @@ private <K, V> SimpleBinder.Parameterized<K, V> redisHashBinder(ImmutableProp pr
155155
return RedisHashBinder
156156
.<K, V>forProp(prop)
157157
.publish(args.tracker)
158-
.duration(args.duration)
159158
.objectMapper(args.objectMapper)
159+
.keyPrefixProvider(args.keyPrefixProvider)
160160
.duration(args.multiVewDuration)
161161
.randomPercent(args.randomDurationPercent)
162162
.redis(args.connectionFactory)

0 commit comments

Comments
 (0)