title: Set Cache Redis Expiration to 1 year
body: <p>How to set Redis Cache expiration to 1 year?</p>
  
  <p>I tried to set the <code>long</code> value on the xml configuration to : <code>31556952000</code> (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 <code>2147483647</code>, which means, if I set to that maximum value, I only get my cache expires on 24 days.</p>
  
  <p>Here is my <code>applicationContext.xml</code> (I omitted unnecessary code) :</p>
  
  <pre><code>    ...
      &lt;cache:annotation-driven /&gt;
  
      &lt;bean id="redisCacheMap" class="java.util.HashMap"&gt;
          &lt;constructor-arg index="0" type="java.util.Map"&gt;
              &lt;map key-type="java.lang.String" value-type="java.lang.Integer"&gt;
                  &lt;entry key="ruleCache" value="86400"/&gt;
              &lt;/map&gt;
          &lt;/constructor-arg&gt;
      &lt;/bean&gt;
      ...
  </code></pre>
  
  <p>The code above is configured to set the expiration of <code>ruleCache</code> to only 1 day (86400 in ms).</p>
  
  <p>Is it possible to do that? Thanks.</p>