ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lamey <cla...@localmatters.com>
Subject Re: Caching question
Date Wed, 08 Aug 2007 19:48:36 GMT
You can use the: 

   <flushOnExecute statement="somequeryname"/>

To automatically flush a specific cache when a specific query is run.


On 8/8/07 1:44 PM, "avalerio1" <avalerio1@cox.net> wrote:

> I've implemented the LRU caching model here's the config:
> <cacheModel id="a-cache" type ="LRU" readOnly="false" serialize="true">
> <flushInterval hours="12"/>
> <property name="cache-size" value="1000" />
> </cacheModel>
> Now here's the question: Do I have to flush the cache myself after an update
> to a table? If I query a table that returns 4 rows then add or delete a row,
> when I query the table after the update I get the same 4 rows returned
> initially.
> Thanks.

View raw message