Having analyzed the code, it appears that there is no way to set an indefinite TTL.
If I pass a TTL of 0, it will timeout immediately. Same with -1. If I pass null, it just sets it to the default TTL...
There needs to be a mechanism to set an indefinite store period. So let's settle on the industry standard of -1.
Having analyzed the code, it appears that there is no way to set an indefinite TTL.
If I pass a TTL of
0, it will timeout immediately. Same with-1. If I passnull, it just sets it to the default TTL...There needs to be a mechanism to set an indefinite store period. So let's settle on the industry standard of
-1.