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
NamestringThe key name (max 512 bytes).
Expirationlong?Unix timestamp when the key expires (if set).
MetadataJsonElement?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
Name
The key name (max 512 bytes).
[JsonPropertyName("name")]
public string Name { get; init; }