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 Jeff Butler <je...@gmail.com> on 2006/09/29 17:56:04 UTC
Re: how to manually flush cache in daoManger?
I assume you mean that you want to flush the cache from iBATIS DAOs.
Two things I can think of...
1. Write a do-nothing query, and add that query to the <flushOnExecute>
settings of your cache declaration. Then execute the query in a dao method.
2. You could write a dao method to do this:
SqlMapClient client = (SqlMapClient) getSqlMapExecuter();
client.flushDataCache();
The second requires some knowledge of iBATIS internals, but it should work.
Jeff Butler
On 9/29/06, Tony Qian <da...@aol.com> wrote:
>
> All,
>
> I'm using Abator generated code for iBATIS. Does anyone know how to flush
> cache manually in a similar fashion as in sqlMapClient?
>
> thanks,
> Tony
>