Skip to content

Commit db054cc

Browse files
committed
feat(demo): Added indexing for movie cache
1 parent dcdf8c5 commit db054cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/redis/cache/demo/CacheConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class CacheConfig {
1616

1717
@Bean
1818
CacheManager cacheManager(RedisModulesClient client, MeterRegistry registry) {
19-
RedisCacheConfiguration hashConfig = RedisCacheConfiguration.defaultConfig().meterRegistry(registry)
19+
RedisCacheConfiguration hashConfig = RedisCacheConfiguration.defaultConfig().indexEnabled(true).meterRegistry(registry)
2020
.redisType(RedisType.HASH);
2121
RedisCacheConfiguration stringConfig = RedisCacheConfiguration.defaultConfig().meterRegistry(registry)
2222
.redisType(RedisType.STRING);

0 commit comments

Comments
 (0)