@earth-app/collegedb
    Preparing search index...

    Interface NuxtHubKVLike

    NuxtHub/Unstorage-like KV contract used by the adapter.

    interface NuxtHubKVLike {
        del?(key: string): any;
        get?<T = any>(
            key: string,
        ): T | Promise<T | null | undefined> | null | undefined;
        getItem?<T = any>(
            key: string,
        ): T | Promise<T | null | undefined> | null | undefined;
        getKeys?(
            prefix?: string,
        ): string[] | readonly string[] | Promise<string[] | readonly string[]>;
        keys?(
            prefix?: string,
        ): string[] | readonly string[] | Promise<string[] | readonly string[]>;
        removeItem?(key: string): any;
        set?(key: string, value: any, options?: { ttl?: number }): any;
        setItem?(key: string, value: any): any;
    }
    Index

    Methods

    • Type Parameters

      • T = any

      Parameters

      • key: string

      Returns T | Promise<T | null | undefined> | null | undefined

    • Type Parameters

      • T = any

      Parameters

      • key: string

      Returns T | Promise<T | null | undefined> | null | undefined

    • Parameters

      • Optionalprefix: string

      Returns string[] | readonly string[] | Promise<string[] | readonly string[]>

    • Parameters

      • Optionalprefix: string

      Returns string[] | readonly string[] | Promise<string[] | readonly string[]>

    • Parameters

      • key: string
      • value: any
      • Optionaloptions: { ttl?: number }

      Returns any

    • Parameters

      • key: string
      • value: any

      Returns any