.setExpirationKeyName(ExpirationAlgorithmConfig.EXPIRATION_KEY);
useExpiration = true;
}
else if (config instanceof FIFOAlgorithmConfig)
{
FIFOAlgorithmConfig fifoConfig = (FIFOAlgorithmConfig)config;
if (fifoConfig.getMinTimeToLive() > 0)
{
LOG.warn("The FIFO algorithm with a minTimeToLive greater than 0 can cause a memory leak, "
+ "please use another eviction algorithm or set the minTimeToLive to 0.");
}
}