fixes #2659

ceils nanosecond values to 1 ms to prevent no eviction case
Imho it is asking for problems. Null parameters should be used with extreme care. I don't see the need for it, if you can pass -1, you can also select a TimeUnit.