e.service">OddStore</a>&nbsp;getInstance()</pre>
</li>
</ul>
<a name="setMaxAge-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxAge</h4>
<pre>public&nbsp;void&nbsp;setMaxAge(int&nbsp;maxAge)</pre>
<div class="block">set expiration for objects in cache. If this method is not called, then objects will remain in the cache forever</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxAge</code> - maximum age of objects in milliseconds before they are removed