actually register the eviction listener with soft / resident filter cache
This commit is contained in:
parent
c934f04b0c
commit
49e2f55abd
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue