You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Larry Meadors <lm...@apache.org> on 2007/11/04 17:13:46 UTC

Re: problem with flushInterval in cacheModel

Interesting, I didn't realize that there was a limit.

If you omit the flushInterval, it will not be flushed.

Larry


On 11/4/07, Odelya Glick <od...@jpost.com> wrote:
> HI,
>
> I have declared the following cacheModel
> <cacheModel id="countriesCache" type="LRU">
>                 <flushInterval hours="720" />
>                 <property name="size" value="100" />
>         </cacheModel>
>
> But I get an exception that flush must be declared either with hours, min or
> so.
> When I changed it to hours="24" it's fine.
>
> What's the limit?
>
> and if I want it to be cached for good?
>
> (I don't think to ever change the countries table).
>
> Thank you,
>
> Odelya
> web-programmer
> 050-2052075
>
>
>