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

@@ -22,7 +22,6 @@ import org.slf4j.LoggerFactory;
import javax.persistence.PersistenceException;
import javax.persistence.RollbackException;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;