Redis (2) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ ์ฝ๋๋ก ์์๋ณด๋ Spring Data Redis์ @Cacheable ๋์ ์๋ฆฌ์ ํธ๋์ญ์ ์์ @CachePut/@CacheEvict ์คํ ์์ ๊ธ์ ๋ชฉํSpring Data Redis์์ @Cacheable ๋ฉ์๋๋ฅผ ์คํํ๊ณ , ์บ์ ๋ฏธ์ค(Cache miss)๋ก ์ธํด ๋ฐํ๊ฐ์ด ์บ์์ ์ ์ฅ๋๋ ๊ณผ์ . ๊ทธ๋ฆฌ๊ณ , @Transactional๊ณผ ํจ๊ป @CachePut/@CacheEvict๋ฅผ ์ฌ์ฉํ ๊ฒฝ์ฐ @CachePut/@CacheEvict๊ฐ ์ธ์ ์คํ๋๋์ง๋ฅผ ๋ด๋ถ ๊ตฌํ์ ํตํด ์๋ ๊ฒ์ด ๋ชฉํ์ ๋๋ค. ๋ณธ ๊ธ์ RedisCache์ ํ์ ๋ ๋ด์ฉ์์ ๋ฏธ๋ฆฌ ์๋ ค๋๋ฆฝ๋๋ค. Spring Cache ์ถ์ํ ๊ตฌ์กฐ Spring Cache๋ Cache ์ธํฐํ์ด์ค์ CacheManager ์ธํฐํ์ด์ค๋ฅผ ํตํด ์ถ์ํ๋ฉ๋๋ค This abstraction is materialized by the org.springframework.cache.Cache and org.springf.. RedisTemplate ๋ด๋ถ ํ๊ตฌ: Spring Data Redis๋ Lettuce๋ฅผ ์ด๋ป๊ฒ ์ถ์ํํ๋๊ฐ? Lettuce ๊ฐ ๋ฌด์์ธ์ง, Spring Data Redis์ RedisTemplate ์ Lettuce ๋ฅผ ์ด๋ป๊ฒ ์ถ์ํํ๋์ง ์์๋ณด๊ณ ์ ํฉ๋๋ค. ๋จผ์ , Spring Data Redis ๋ Lettuce์ Jedis ๋ผ๋ 2๊ฐ์ ์คํ ์์ค ๋ผ์ด๋ธ๋ฌ์ ํตํฉ๋์์ต๋๋ค.Spring Data Redis integrates with Lettuce and Jedis, two popular open-source Java libraries for Redis. Lettuce์ Jedis๋ "Java์์ Redis์ ์ ๊ทผํ์ฌ ๋ฐ์ดํฐ๋ฅผ ์ฃผ๊ณ ๋ฐ์ ์ ์๋๋ก ๋์์ฃผ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ"์ ๋๋ค.๊ทธ๋ ๋ค๋ฉด ๊ฐ๊ฐ ๋ฌด์์ธ์ง Lettuce๋ถํฐ ์์๋ณด๊ฒ ์ต๋๋ค.Lettuce ๋?Lettuce is a scalable thread-safe Redi.. ์ด์ 1 ๋ค์