[Opensymphony-oscache] why i can still get the cached object after flushEntry(key) is called?

dres <[email protected]> Wed, 18 May 2005 09:34:51 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <32135987.1116426922016.JavaMail.os-j2ee@opensymphony01.contegix.com>
there are a couple of things going on here.  First and foremost is that you are not handling the NeedsRefreshException in your catch block.   You must call a put or cancelUpdate after you catch the exception.  Please seee the wiki about this.

Also, flush does not remove the entry only expire it.  When you call get with the CacheEntry.INDEFINITE_EXPIRY, you mark the entry as not expired.  Since you don't handle the exception properly like I described above.  The next get() call does not see the entry as expired.

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=2321&messageID=6802#6802