[jboss-as7-dev] A simple timed cache?

Marcus Moyses mmoyses at redhat.com
Tue Sep 6 10:53:06 EDT 2011



On 09/06/2011 11:28 AM, Anil Saldhana wrote:
> On 09/06/2011 08:38 AM, Jason T. Greene wrote:
>>>>>>   2) copy infinispan's LIRS map
>>>>   Infinispan's LIRS is not easy to extract out, you'll have to make
>>>>   significant changes
>> Last I looked it was a small handful of classes. Not a big deal. I think
>> Jesper used it in ironjacamar. The security subsytem directly linked
>> against it. That' something I have been meaning to open a JIRA on, since
>> this is technically not a public API it's likely better to copy.
>>
> For the Auth Cache in the Security subsystem, we have 2 use cases:
> a) Timed Cache.
> b) Timed Cache with cluster distribution.
>
> The former is default usage while the latter is something the user
> configures.
>
Actually the default auth cache doesn't have timeout eviction. It's a 
simple BoundedConcurrentHashMap. To have any control over the timeout of 
entries one needs to use the infinispan cache type for a security domain.
> For the cluster aware cache, we brought in direct dependence on
> Infinispan cache.
>
> Jason, we support your insistence on  a smaller infinispan dependence.
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

-- 
Marcus Moyses
Senior JBoss Core Developer
JBoss by Red Hat



More information about the jboss-as7-dev mailing list