Table of Contents

Class KvBulkWriteItem

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

A key-value pair for bulk write operations.

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

Constructors

KvBulkWriteItem(string, string, bool?, long?, int?, JsonElement?)

A key-value pair for bulk write operations.

public KvBulkWriteItem(string Key, string Value, bool? Base64 = null, long? Expiration = null, int? ExpirationTtl = null, JsonElement? Metadata = null)

Parameters

Key string

The key name (max 512 bytes).

Value string

The value to store (base64 encoded for binary).

Base64 bool?

Whether the value is base64 encoded.

Expiration long?

Unix timestamp when the key should expire.

ExpirationTtl int?

Time-to-live in seconds (min 60).

Metadata JsonElement?

Optional JSON metadata (max 1024 bytes serialized).

Properties

Base64

Whether the value is base64 encoded.

[JsonPropertyName("base64")]
public bool? Base64 { get; init; }

Property Value

bool?

Expiration

Unix timestamp when the key should expire.

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

Property Value

long?

ExpirationTtl

Time-to-live in seconds (min 60).

[JsonPropertyName("expiration_ttl")]
public int? ExpirationTtl { get; init; }

Property Value

int?

Key

The key name (max 512 bytes).

[JsonPropertyName("key")]
public string Key { get; init; }

Property Value

string

Metadata

Optional JSON metadata (max 1024 bytes serialized).

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

Property Value

JsonElement?

Value

The value to store (base64 encoded for binary).

[JsonPropertyName("value")]
public string Value { get; init; }

Property Value

string