Table of Contents

Class KvKey

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

Represents a key in a KV namespace (from list keys response).

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

Constructors

KvKey(string, long?, JsonElement?)

Represents a key in a KV namespace (from list keys response).

public KvKey(string Name, long? Expiration = null, JsonElement? Metadata = null)

Parameters

Name string

The key name (max 512 bytes).

Expiration long?

Unix timestamp when the key expires (if set).

Metadata JsonElement?

Optional JSON metadata associated with the key.

Properties

Expiration

Unix timestamp when the key expires (if set).

[JsonPropertyName("expiration")]
public long? Expiration { get; init; }

Property Value

long?

Metadata

Optional JSON metadata associated with the key.

[JsonPropertyName("metadata")]
public JsonElement? Metadata { get; init; }

Property Value

JsonElement?

Name

The key name (max 512 bytes).

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string