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

    Function createWorkersKVProvider

    • Wraps a raw Cloudflare Workers KVNamespace in CollegeDB's KVStorage contract.

      Use this when your KV binding is the native Workers KVNamespace (from env.KV) rather than a NuxtHub/Unstorage-style client (see createNuxtHubKVProvider for that). The adapter maps get/put/ delete/list directly and preserves the paginated list cursor.

      Parameters

      Returns KVStorage

      KVStorage-compatible adapter

      1.2.4

      initialize({
      kv: createWorkersKVProvider(env.KV),
      shards: { 'db-east': env.DB_EAST },
      strategy: 'hash'
      });