- Give a default expiration (or TTL) to the cache to be built.
- @param expiration the expiration delay in milliseconds.
@return this builder for chaining.
As the documentation specifies that the expiration time should be in milliseconds but the time that it actually takes is in seconds.
Proof: If I give time t in seconds and t is less than 30 days, the entry persists. If I give time t greater than 30 days, the entry is evicted immediately because now time is considered as absolute time i.e time from Unix time.
If I provide time in milliseconds, the behaviour is very unexpected because one can expect unusual behaviour if something expected in seconds is passed in milliseconds.
In short the name of the method and the documentation are misleading.