Skip to content

Commit

Permalink
Merge pull request #1 from howaric/change_properties_name
Browse files Browse the repository at this point in the history
Change properties spring.cache.enhanced to spring.cache.enhancer
  • Loading branch information
Howaric committed Mar 9, 2022
2 parents 421746f + 660be4f commit 580cbed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spring:
type: redis
redis:
time-to-live: 10000 # time unit is millis
enhanced:
enhancer:
# enhanced-cache-manager-name: "customEnhancedCacheManager" # name of the cache manager
delay-time: 2000 # means deleting cache eviction again after 2s, default is 5s
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
public class EnhancedCacheAutoConfiguration implements BeanPostProcessor, ApplicationContextAware {

private ApplicationContext applicationContext;

private EnhancedCacheProperties enhancedCacheProperties;

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.cache.enhanced")
@ConfigurationProperties(prefix = "spring.cache.enhancer")
public class EnhancedCacheProperties {

private String enhancedCacheManagerName = EnhancedCacheManager.ENHANCED_CACHE_MANAGER;
Expand Down

0 comments on commit 580cbed

Please sign in to comment.