Deletes a key.
OptionaldeleteDeletes several keys in one round trip.
Optional, with the same fallback contract as KVStorage.getMany.
Retrieves a value by key. When type is json, the value should be parsed.
Optionaltype: "text"OptionalgetReads several keys in one round trip, returning results positionally.
Optional. Backends with a native multi-get (Redis/Valkey MGET) implement
it; CollegeDB falls back to concurrent single reads when it is absent, so
callers never need to check for it.
Optionaltype: "text"Lists keys, optionally filtered by prefix.
Optionaloptions: { cursor?: string; limit?: number; prefix?: string }Stores a value by key.
OptionalputWrites several key/value pairs in one round trip.
Optional, with the same fallback contract as KVStorage.getMany. A multi-key shard mapping otherwise costs one round trip per lookup key.
Provider-agnostic key-value storage contract.
This interface is implemented by Cloudflare KV, Redis/Valkey adapters, and any custom KV backend supported by CollegeDB.