Lettuce is a Netty-based open-source connector supported by Spring Data Redis through the org.springframework.data.redis.connection.lettuce package. The following example shows how to create a new Lettuce connection factory:
There are also a few Lettuce-specific connection parameters that can be tweaked. By default, all LettuceConnection instances created by the LettuceConnectionFactory share the same thread-safe native connection for all non-blocking and non-transactional operations. To use a dedicated connection each time, set shareNativeConnection to false. LettuceConnectionFactory can also be configured to use a LettucePool for pooling blocking and transactional connections or all connections if shareNativeConnection is set to false.
'백엔드 > Java' 카테고리의 다른 글
Effective Java 맛보기 4탄 (0) | 2019.09.16 |
---|---|
Effective Java 맛보기 3탄 (0) | 2019.09.15 |
Effective Java 맛보기 2탄 (0) | 2019.09.15 |
Effective Java 맛보기 1탄 (0) | 2019.09.14 |
리팩토링 맛보기 1탄 (0) | 2019.08.11 |
JUnit 4.5 에러 (0) | 2019.03.13 |
Spring @Autowired 사용시 주의점 (0) | 2019.03.11 |
Spring + Mybatis + Junit 단위 테스트 (0) | 2017.09.06 |
댓글