diff --git a/src/NATS.Client.JetStream/Models/StreamConfig.cs b/src/NATS.Client.JetStream/Models/StreamConfig.cs index ef616ecd2..b1ad77f5f 100644 --- a/src/NATS.Client.JetStream/Models/StreamConfig.cs +++ b/src/NATS.Client.JetStream/Models/StreamConfig.cs @@ -242,6 +242,7 @@ internal StreamConfig() /// /// AllowMsgTTL allows header initiated per-message TTLs. If disabled, then the `NATS-TTL` header will be ignored. /// + /// This feature is only available on NATS server v2.11 and later. [System.Text.Json.Serialization.JsonPropertyName("allow_msg_ttl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault)] public bool AllowMsgTTL { get; set; } @@ -249,6 +250,7 @@ internal StreamConfig() /// /// Enables and sets a duration for adding server markers for delete, purge and max age limits. /// + /// This feature is only available on NATS server v2.11 and later. [System.Text.Json.Serialization.JsonPropertyName("subject_delete_marker_ttl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault)] [System.Text.Json.Serialization.JsonConverter(typeof(NatsJSJsonNanosecondsConverter))] diff --git a/src/NATS.Client.KeyValueStore/INatsKVStore.cs b/src/NATS.Client.KeyValueStore/INatsKVStore.cs index dafb364dd..f98d3ec9d 100644 --- a/src/NATS.Client.KeyValueStore/INatsKVStore.cs +++ b/src/NATS.Client.KeyValueStore/INatsKVStore.cs @@ -57,7 +57,7 @@ public interface INatsKVStore /// /// Key of the entry /// Value of the entry - /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. + /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. This feature is only available on NATS server v2.11 and later. /// Serializer to use for the message type. /// A used to cancel the API call. /// Serialized value type @@ -83,7 +83,7 @@ public interface INatsKVStore /// /// Key of the entry /// Value of the entry - /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. + /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. This feature is only available on NATS server v2.11 and later. /// Serializer to use for the message type. /// A used to cancel the API call. /// Serialized value type @@ -109,7 +109,7 @@ public interface INatsKVStore /// /// Key of the entry /// Value of the entry - /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. + /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. This feature is only available on NATS server v2.11 and later. /// Serializer to use for the message type. /// A used to cancel the API call. /// Serialized value type @@ -137,7 +137,7 @@ public interface INatsKVStore /// Key of the entry /// Value of the entry /// Last revision number to match - /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. + /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. This feature is only available on NATS server v2.11 and later. /// Serializer to use for the message type. /// A used to cancel the API call. /// Serialized value type @@ -165,7 +165,7 @@ public interface INatsKVStore /// Key of the entry /// Value of the entry /// Last revision number to match - /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. + /// Time to live for the entry (requires the to be set to true). For a key that should never expire, use the constant. This feature is only available on NATS server v2.11 and later. /// Serializer to use for the message type. /// A used to cancel the API call. /// Serialized value type diff --git a/src/NATS.Client.KeyValueStore/NatsKVConfig.cs b/src/NATS.Client.KeyValueStore/NatsKVConfig.cs index f3380f760..d89a20566 100644 --- a/src/NATS.Client.KeyValueStore/NatsKVConfig.cs +++ b/src/NATS.Client.KeyValueStore/NatsKVConfig.cs @@ -81,11 +81,13 @@ public record NatsKVConfig /// /// If true, the bucket will allow TTL on individual keys. /// + /// This feature is only available on NATS server v2.11 and later. public bool AllowMsgTTL { get; set; } /// /// Enables and sets a duration for adding server markers for delete, purge and max age limits. /// + /// This feature is only available on NATS server v2.11 and later. public TimeSpan SubjectDeleteMarkerTTL { get; set; } }