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
KeystringThe key name (max 512 bytes).
ValuestringThe value to store (base64 encoded for binary).
Base64bool?Whether the value is base64 encoded.
Expirationlong?Unix timestamp when the key should expire.
ExpirationTtlint?Time-to-live in seconds (min 60).
MetadataJsonElement?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
Metadata
Optional JSON metadata (max 1024 bytes serialized).
[JsonPropertyName("metadata")]
public JsonElement? Metadata { get; init; }
Property Value
Value
The value to store (base64 encoded for binary).
[JsonPropertyName("value")]
public string Value { get; init; }