Hi,
What do you mean by before app load?
To forcefully refresh the cache, you can use
getSqlMapClient().flushDataCache("sqlmap.queryname");
Vinaya
________________________________
From: Anindya Mukherjee [mailto:[email protected]]
Sent: Wednesday, July 15, 2009 3:06 PM
To: [email protected]
Cc: [email protected]
Subject: Force cache refresh + precaching
Hi ,
We have started using iBatis caches. To start with we are using an LRU
cache. However we have an issue , the underlying tables in our db can
be updated by manual inserts ( it is a shared db used by a number of
apps ).
Now we need a mechanism whereby we can forcefully refresh the iBatis
cache. Can anybody help us with this ? Also the ibatis caches are lazy
loading ( it loads on demand ) , is it possible to somehow precache some
data during app load.
- Thanks,
- Anindya
This electronic message is intended only for the use of the individual(s) or
entity(ies) named above and may contain information which is privileged and/or
confidential. If you are not the intended recipient, be aware that any
disclosure, copying, distribution, dissemination or use of the contents of this
message is prohibited. If you received this message in error, please notify
the sender immediately.