왜?
- 캐시를 활용할때 어떤 차이가 있으며, 어떤 효과를 지녔는지?
spring-cache + ehcache
build.gradle
1 | //ehcache |
xml 세팅
1 | <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
application-yml
1 | spring: |
cacheEventListener
1 | 4j |
eacheConfig
1 |
|
사용예시
1 | ( |
1 | //ehcache |
1 | <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
1 | spring: |
1 | @Slf4j |
1 | @Configuration |
1 | @Cacheable( |
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: true tags: true