[infinispan-dev] Time measurement and expiry

Sanne Grinovero sanne at infinispan.org
Thu Nov 3 11:54:51 EDT 2011


On 3 November 2011 15:47, Vladimir Blagojevic <vblagoje at redhat.com> wrote:
> Sanne have you integrated this? I would love to see what you have done!

Yes it's in master as ISPN-1459

Again it's a super-simple patch; it's all about
the following change:

for each entry {
  long now = System.currentTimeMillis();
  if (entry.isExpired(now)){
    evict(entry);
  }
}

into
long now = System.currentTimeMillis();
for each entry {
  if (entry.isExpired(now)){
    evict(entry);
  }
}

(which involves some API chages, but that's the point).

Cheers,
Sanne


More information about the infinispan-dev mailing list