[ 
http://issues.apache.org/jira/browse/IBATIS-91?page=comments#action_12313014 ] 

Brandon Goodin commented on IBATIS-91:
--------------------------------------

This is not a bad idea. I believe it would require a new cacheModel 
implementation. The flushOnExecute would still flush the whole results however. 
I implemented a cache on my own that accomplished this. Basically every cache 
entry was wrapped with an object that contained metadata about when the cache 
was created. A thread would constantly monitor the cache and remove anything 
that had expired after a certain amount of time.

> Extend flush interval to flush individual cash entries.
> -------------------------------------------------------
>
>          Key: IBATIS-91
>          URL: http://issues.apache.org/jira/browse/IBATIS-91
>      Project: iBatis for Java
>         Type: New Feature
>   Components: SQL Maps
>     Reporter: Jose E. Gonzalez

>
> Flush interval is used to flush a cash model (group) as a hole. It’d be nice 
> to have the option to use it to flush individual cash entries, so that the 
> cache model checks if the entry has expired before returning it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to