Table of Contents

Class KvWriteOptions

Namespace
Cloudflare.NET.Accounts.Kv.Models
Assembly
Cloudflare.NET.dll

Options for writing a key-value pair.

public record KvWriteOptions : IEquatable<KvWriteOptions>
Inheritance
KvWriteOptions
Implements
Inherited Members

Constructors

KvWriteOptions(long?, int?, JsonElement?)

Options for writing a key-value pair.

public KvWriteOptions(long? Expiration = null, int? ExpirationTtl = null, JsonElement? Metadata = null)

Parameters

Expiration long?

Unix timestamp when the key should expire.

ExpirationTtl int?

Time-to-live in seconds (min 60). Ignored if Expiration is set.

Metadata JsonElement?

Optional JSON metadata to associate with the key (max 1024 bytes serialized).

Properties

Expiration

Unix timestamp when the key should expire.

public long? Expiration { get; init; }

Property Value

long?

ExpirationTtl

Time-to-live in seconds (min 60). Ignored if Expiration is set.

public int? ExpirationTtl { get; init; }

Property Value

int?

Metadata

Optional JSON metadata to associate with the key (max 1024 bytes serialized).

public JsonElement? Metadata { get; init; }

Property Value

JsonElement?