Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/347.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 关键主体名称索引名称的Spring AWS弹性缓存Redis会话超时/TTL问题_Java_Spring_Spring Boot_Redis Cache_Aws Elasticache - Fatal编程技术网

Java 关键主体名称索引名称的Spring AWS弹性缓存Redis会话超时/TTL问题

Java 关键主体名称索引名称的Spring AWS弹性缓存Redis会话超时/TTL问题,java,spring,spring-boot,redis-cache,aws-elasticache,Java,Spring,Spring Boot,Redis Cache,Aws Elasticache,使用的工具: springBootVersion='2.1.3.RELEASE' jdk-11.0.4 AWS弹性缓存-Redis 我们如何通过设置超时(TTL)或编程方式(默认情况下,Spring:session:index:org.springframework.session.FindByIndexNameSessionRepository.PRINCIPAL_NAME_index_NAME index是在Redis中创建的,过期时间为-1,本质上是无限的,它正在消耗缓存内存 我试过spr

使用的工具:

  • springBootVersion='2.1.3.RELEASE'
  • jdk-11.0.4
  • AWS弹性缓存-Redis
  • 我们如何通过设置超时(TTL)或编程方式(默认情况下,Spring:session:index:org.springframework.session.FindByIndexNameSessionRepository.PRINCIPAL_NAME_index_NAME index是在Redis中创建的,过期时间为-1,本质上是无限的,它正在消耗缓存内存

    我试过spring.cache.redis.time-to-live,但不起作用