Cloesce - v0.0.5-unstable.27
    Preparing search index...

    Class KValue<V>

    Base class for a Cloudflare KV model or navigation property.

    Consists of a key, value, and optional metadata.

    • The key is a string that uniquely identifies the entry in the KV store.
    • The value is of generic type V, allowing flexibility in the type of data stored.
    • V must be serializable to JSON.
    • The metadata can hold any additional information associated with the KV entry.

    Type Parameters

    • V

      The type of the value stored in the KValue. Note that KV is schema-less, so this type is not enforced at runtime, but serves as the type the client expects.

    Index

    Constructors

    Properties

    Accessors

    Constructors

    • Type Parameters

      • V

        The type of the value stored in the KValue. Note that KV is schema-less, so this type is not enforced at runtime, but serves as the type the client expects.

      Returns KValue<V>

    Properties

    key: string
    metadata: unknown
    raw: unknown

    Accessors