Couchbase C++ SDK 1.0.2 (rev. 51f4775)
Loading...
Searching...
No Matches
create_collection_settings Struct Reference

The settings to use when creating the collection. More...

#include <couchbase/create_collection_options.hxx>

Public Attributes

std::optional< std::int32_t > max_expiry {}
 The maximum expiry, in seconds, for documents in this collection.
 
std::optional< bool > history {}
 Whether history retention should be enabled.
 

Detailed Description

The settings to use when creating the collection.

Member Data Documentation

◆ history

std::optional<bool> history {}

Whether history retention should be enabled.

If unset, the bucket-level setting is used.

◆ max_expiry

std::optional<std::int32_t> max_expiry {}

The maximum expiry, in seconds, for documents in this collection.

Values greater than or equal to -1 are valid. Value of 0 sets max_expiry to the bucket-level setting and value of -1 to set it as no-expiry.


The documentation for this struct was generated from the following file: