[jboss-jira] [JBoss JIRA] Updated: (JBCACHE-1215) NullEvictionPolicy

Manik Surtani (JIRA) jira-events at lists.jboss.org
Tue Nov 27 07:59:46 EST 2007


     [ http://jira.jboss.com/jira/browse/JBCACHE-1215?page=all ]

Manik Surtani updated JBCACHE-1215:
-----------------------------------

    Fix Version/s: 3.0.0

> NullEvictionPolicy
> ------------------
>
>                 Key: JBCACHE-1215
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-1215
>             Project: JBoss Cache
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Brian Stansberry
>         Assigned To: Brian Stansberry
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> An eviction policy that allows returns 'true' to EvictionPolicy.canIgnoreEvent().  Other methods are no-ops or equivalent defaults.
> Use case is situations where there are multiple eviction regions in a cache, some of which should never evict anything.  You could use an LRUPolicy with maxAge=0, maxNodes=0 to accomplish a similar thing, but then you incur wasted overhead of generating, queuing up and processing node events. NullEvictionPolicy just bypasses everything.
> Some usages:
> Hibernate timestamp caching.  The timestamp region should never be evicted.
> HttpSession caching with FIELD.  I'll probably need to use JBC eviction for the JBossInternal_ area to passivate pojos.  But passivating the sessions themselves should not be managed by JBC. So I could use NullEvictionPolicy for the session storage area.
> Could also be inserted as a global default if JBC detects that the _default_ region wasn't configured while a subregion was.
> I coded this up one night a while ago and forgot about it.  Could be added to 2.1.0.GA if not too late; otherwise later.

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

        



More information about the jboss-jira mailing list