redisTemplate超時設置

redistempalate的超時設置時,必定要每次用set寫入時,更新超時,否則默認會失效的。redis 例如:this int tempTime = this.redisTemplate.getExpire("max").intValue(); tempCount = this.redisTemplate.opsForValue().get("max")-1; this.redisTempla
相關文章
相關標籤/搜索