spring-data-redis中的StringRedisTemplate从2.1及以上开始支持设置过期时间。之前版本只能设置值,不能设置过期时间。

redis中StringRedisTemplate的setIfAbsent方法设置过期时间

 

相关文章:

  • 2022-12-23
  • 2023-01-18
  • 2021-06-02
  • 2021-06-21
  • 2022-03-04
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2022-02-18
  • 2021-07-24
  • 2022-12-23
相关资源
相似解决方案