Set Cache Redis Expiration to 1 year
问题 How to set Redis Cache expiration to 1 year? I tried to set the long value on the xml configuration to : 31556952000 (1 year), but then it caught an exception that type Integer doesn't recognize the value as Integer. I tried to search at Google, and it says that Integer maximum value is up to 2147483647 , which means, if I set to that maximum value, I only get my cache expires on 24 days. Here is my applicationContext.xml (I omitted unnecessary code) : ... <cache:annotation-driven /> <bean id