This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12933|Reply: 1

[Source] Let's talk about the configuration changes of spring-boot-starter-data-redis

[Copy link]
Posted on 3/8/2019 10:48:01 AM | | |
Preface

This article mainly examines the configuration changes of spring-boot-starter-data-redis

Configuration changes

It used to bespring-boot 1.4.xversion (spring-data-redis is version 1.7.x), recently cut to2.0.4.RELEASEBversion (spring-data-redis is version 2.0.5.RELEASE), and the configuration has changed.

Legacy configuration

New version configuration

Summary

The new version of spring-boot-starter-data-redis has several changes as follows:

  • In addition to the common configuration, there are two different implementations, jedis and lettuce
  • If you change the spring.redis.timeout parameter to the Duration type, you need to add the time unit parameter
  • The new version of spring-boot-starter-data-redis uses lettuce by default
  • The redis connection pool needs to introduce the commons-pool2 library, because some core classes in the new version of the library have changed, so you need to pay attention to the version number, and there may be problems with version 2.4.3


Resources:https://docs.spring.io/spring-da ... RC2/reference/html/





Previous:Detailed graphic tutorial on using bricklayer VPS to build a personal network disk
Next:C# gets the date from the beginning of the month to the end of the month based on the year and month
Posted on 3/20/2019 2:09:22 PM |
I give you a thumbs up to the landlord
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com