actually register the eviction listener with soft / resident filter cache

This commit is contained in:
kimchy 2011-04-09 14:11:42 +03:00
parent c934f04b0c
commit 49e2f55abd
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public class ResidentFilterCache extends AbstractConcurrentMapFilterCache implem
if (expire != null) {
mapMaker.expireAfterAccess(expire.nanos(), TimeUnit.NANOSECONDS);
}
mapMaker.evictionListener(this);
return mapMaker.makeMap();
}

View File

@ -63,6 +63,7 @@ public class SoftFilterCache extends AbstractConcurrentMapFilterCache implements
if (expire != null) {
mapMaker.expireAfterAccess(expire.nanos(), TimeUnit.NANOSECONDS);
}
mapMaker.evictionListener(this);
return mapMaker.makeMap();
}