Table of Contents

Class KvValueResult

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

Result of reading a key-value pair, including expiration from HTTP header.

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

Remarks

Single key reads return raw value directly (not JSON envelope). The expiration is provided in the HTTP 'expiration' response header.

Constructors

KvValueResult(byte[], long?)

Result of reading a key-value pair, including expiration from HTTP header.

public KvValueResult(byte[] Value, long? Expiration = null)

Parameters

Value byte[]

The raw value bytes.

Expiration long?

Unix timestamp when the key expires (from 'expiration' header), or null if no expiration.

Remarks

Single key reads return raw value directly (not JSON envelope). The expiration is provided in the HTTP 'expiration' response header.

Properties

Expiration

Unix timestamp when the key expires (from 'expiration' header), or null if no expiration.

public long? Expiration { get; init; }

Property Value

long?

Value

The raw value bytes.

public byte[] Value { get; init; }

Property Value

byte[]