Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.0.0, 7.1.0, 7.2.0
-
None
-
0
Description
In doc pages,
https://docs.couchbase.com/server/current/learn/data/expiration.html
https://docs.couchbase.com/server/current/rest-api/creating-a-collection.html
We find language as, "The default value for maxTTL is 0, which disables TTL for the collection." . This is not completely accurate, it is true that the default value of maxTTL is 0, however, for collection this means that bucket's maxTTL is being used. See below table for the values for maxTTL and what they represent for buckets and collections.
Bucket maxTTL value | What the value represents |
---|---|
0(default) | TTL disabled meaning no expiry, i.e., documents do not expire |
Any positive integer | Number of seconds document documents will live |
Collection maxTTL value | What the value represents |
---|---|
0(default) | Use bucket's maxTTL value |
Any positive integer | Number of seconds document documents will live |
Note: If maxTTL is unspecified, the default value of maxTTL in both cases(bucket and collection) are 0, but they mean different things.