Class UpdateCollectionSettings
Inheritance
UpdateCollectionSettings
Assembly: Couchbase.NetClient.dll
Syntax
public class UpdateCollectionSettings
Constructors
|
Edit this page
View Source
UpdateCollectionSettings(TimeSpan?, bool?)
Optional settings when creating a new Collection.
Declaration
public UpdateCollectionSettings(TimeSpan? expiry = null, bool? history = null)
Parameters
Fields
|
Edit this page
View Source
NoExpiry
Declaration
public static readonly TimeSpan NoExpiry
Field Value
Properties
|
Edit this page
View Source
Default
Declaration
public static UpdateCollectionSettings Default { get; }
Property Value
|
Edit this page
View Source
History
Whether history retention override is enabled on this collection. If left unset, it defaults to the bucket-level setting.
Declaration
public bool? History { get; set; }
Property Value
|
Edit this page
View Source
MaxExpiry
The maximum Time-To-Live (TTL) for new documents in the collection.
Unset or 0 : Uses the Bucket's MaxExpiry
-1 (TimeSpan.FromSeconds(-1)) : Documents do not expire. You can use the static constant NoExpiry for this.
Declaration
public TimeSpan? MaxExpiry { get; set; }
Property Value