Moving defaultservercache implementation to use nanoseconds to determine whether or not something needs to be evicted from the cache. (#998)

The old implementation used System.currentTimeMillis(), which might be unreliable, for instance during a jump in DST.
Thanks @rPraml for noticing and suggesting the fix.
This commit is contained in:
Koen De Groote authored and Rob Bygrave committed 2017-04-01 00:30:01 +13:00
1 parent c5b23c321e
commit b821702b8d
4 files changed
+9 -12

No files matched your search

@@ -3,7 +3,6 @@ package io.ebeaninternal.server.persist;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.persistence.PersistenceException;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.LinkedHashMap;