[Spring] Cache
Spring boot 2022. 1. 3. 23:39

Spring framework에서는 기본적으로 Hash map 기반의 cache 기능을 지원한다. 이번 글에서는 Spring의 cache기능에 대하여 전반적으로 알아보고 간단하게 사용해 보려고 한다. JAVA에서의 Cache JAVA에서는 CachingProvider, CachManager, Cashe, Entry, Expity등 5개의 Interface을 제공한다. CachingProvider: CacheManager를 정의 및 구성, 관리를 해주는 interface 정의 CacheManager: 하나의 Cache에 대한 관리 interface 정의 , 하나의 CacheManager는 하나의 CachingProvider만 소유할 수 있다. Cache: Key-value Mapping 관계를 가진 자료구..