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 Stieve Verheyden <st...@telenet.be> on 2005/04/08 14:09:00 UTC
Problem with cacheModel
I'm creating a webapplication using struts.
The problem I have is when I use the cachemodel:
<cacheModel id="wachtkringCache" type="LRU" readOnly="true">
<flushInterval minutes="1" />
<flushOnExecute statement="insertWachtkring"/>
<flushOnExecute statement="deleteWachtkring"/>
<flushOnExecute statement="updateWachtkring"/>
<property name="size" value="10"/>
</cacheModel>
When I request a page I get the results with no problem. But when I refresh
the page I don't receive any value from the cacheModel during a minute.
So when I do a refresh after a minute I see the results again.
I'm totally new to Ibatis Sqlmaps an I wonder what the problem could be?
Thanks.
Re: Problem with cacheModel
Posted by Brandon Goodin <br...@gmail.com>.
Please post the <select> statement that uses the CacheModel as well.
Brandon
On Apr 8, 2005 6:09 AM, Stieve Verheyden <st...@telenet.be> wrote:
>
>
>
> I'm creating a webapplication using struts.
>
>
>
> The problem I have is when I use the cachemodel:
>
>
>
> <cacheModel id="wachtkringCache" type="LRU" readOnly="true">
>
> <flushInterval minutes="1" />
>
> <flushOnExecute statement="insertWachtkring"/>
>
> <flushOnExecute statement="deleteWachtkring"/>
>
> <flushOnExecute statement="updateWachtkring"/>
>
> <property name="size" value="10"/>
>
> </cacheModel>
>
>
>
> When I request a page I get the results with no problem. But when I refresh
> the page I don't receive any value from the cacheModel during a minute.
>
> So when I do a refresh after a minute I see the results again.
>
>
>
> I'm totally new to Ibatis Sqlmaps an I wonder what the problem could be?
>
>
>
> Thanks.
Re: Problem with cacheModel
Posted by Larry Meadors <la...@gmail.com>.
Are you modifying the list? IIRC, readOnly="true" means that the list is
shared.
On Apr 8, 2005 6:09 AM, Stieve Verheyden <st...@telenet.be>
wrote:
>
> I'm creating a webapplication using struts.
>
> The problem I have is when I use the cachemodel:
>
> <cacheModel id="wachtkringCache" type="LRU" readOnly="true">
>
> <flushInterval minutes="1" />
>
> <flushOnExecute statement="insertWachtkring"/>
>
> <flushOnExecute statement="deleteWachtkring"/>
>
> <flushOnExecute statement="updateWachtkring"/>
>
> <property name="size" value="10"/>
>
> </cacheModel>
>
> When I request a page I get the results with no problem. But when I
> refresh the page I don't receive any value from the cacheModel during a
> minute.
>
> So when I do a refresh after a minute I see the results again.
>
> I'm totally new to Ibatis Sqlmaps an I wonder what the problem could be?
>
> Thanks.
>