Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
The documentation for map entry
It is ambiguous as to whether this entry will immediately expire, live forever, or throw an exception. Some testing indicates that the entry will live forever (i.e. negative values seem to be functionally equivalent to zero).
The javadoc should be updated to clarify this behavior.
The behavior seems to be a bit more complex, since there is also the option to configure a TTL in for the whole map (which has "live forever" as default). It should be like:
I created a PR with a test for these scenarios. I also created a PR to fix and cleanup the