KVNamespace
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2107
Type Parameters
Section titled “Type Parameters”Key extends string = string
Methods
Section titled “Methods”delete()
Section titled “delete()”delete(
key):Promise<void>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2220
Parameters
Section titled “Parameters”Key
Returns
Section titled “Returns”Promise<void>
Call Signature
Section titled “Call Signature”get(
key,options?):Promise<null|string>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2108
Parameters
Section titled “Parameters”Key
options?
Section titled “options?”Partial<KVNamespaceGetOptions<undefined>>
Returns
Section titled “Returns”Promise<null | string>
Call Signature
Section titled “Call Signature”get(
key,type):Promise<null|string>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2112
Parameters
Section titled “Parameters”Key
"text"
Returns
Section titled “Returns”Promise<null | string>
Call Signature
Section titled “Call Signature”get<
ExpectedValue>(key,type):Promise<null|ExpectedValue>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2113
Type Parameters
Section titled “Type Parameters”ExpectedValue
Section titled “ExpectedValue”ExpectedValue = unknown
Parameters
Section titled “Parameters”Key
"json"
Returns
Section titled “Returns”Promise<null | ExpectedValue>
Call Signature
Section titled “Call Signature”get(
key,type):Promise<null|ArrayBuffer>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2117
Parameters
Section titled “Parameters”Key
"arrayBuffer"
Returns
Section titled “Returns”Promise<null | ArrayBuffer>
Call Signature
Section titled “Call Signature”get(
key,type):Promise<null|ReadableStream<any>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2118
Parameters
Section titled “Parameters”Key
"stream"
Returns
Section titled “Returns”Promise<null | ReadableStream<any>>
Call Signature
Section titled “Call Signature”get(
key,options?):Promise<null|string>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2119
Parameters
Section titled “Parameters”Key
options?
Section titled “options?”KVNamespaceGetOptions<"text">
Returns
Section titled “Returns”Promise<null | string>
Call Signature
Section titled “Call Signature”get<
ExpectedValue>(key,options?):Promise<null|ExpectedValue>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2123
Type Parameters
Section titled “Type Parameters”ExpectedValue
Section titled “ExpectedValue”ExpectedValue = unknown
Parameters
Section titled “Parameters”Key
options?
Section titled “options?”KVNamespaceGetOptions<"json">
Returns
Section titled “Returns”Promise<null | ExpectedValue>
Call Signature
Section titled “Call Signature”get(
key,options?):Promise<null|ArrayBuffer>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2127
Parameters
Section titled “Parameters”Key
options?
Section titled “options?”KVNamespaceGetOptions<"arrayBuffer">
Returns
Section titled “Returns”Promise<null | ArrayBuffer>
Call Signature
Section titled “Call Signature”get(
key,options?):Promise<null|ReadableStream<any>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2131
Parameters
Section titled “Parameters”Key
options?
Section titled “options?”KVNamespaceGetOptions<"stream">
Returns
Section titled “Returns”Promise<null | ReadableStream<any>>
Call Signature
Section titled “Call Signature”get(
key,type):Promise<Map<string,null|string>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2135
Parameters
Section titled “Parameters”Key[]
"text"
Returns
Section titled “Returns”Promise<Map<string, null | string>>
Call Signature
Section titled “Call Signature”get<
ExpectedValue>(key,type):Promise<Map<string,null|ExpectedValue>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2136
Type Parameters
Section titled “Type Parameters”ExpectedValue
Section titled “ExpectedValue”ExpectedValue = unknown
Parameters
Section titled “Parameters”Key[]
"json"
Returns
Section titled “Returns”Promise<Map<string, null | ExpectedValue>>
Call Signature
Section titled “Call Signature”get(
key,options?):Promise<Map<string,null|string>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2140
Parameters
Section titled “Parameters”Key[]
options?
Section titled “options?”Partial<KVNamespaceGetOptions<undefined>>
Returns
Section titled “Returns”Promise<Map<string, null | string>>
Call Signature
Section titled “Call Signature”get(
key,options?):Promise<Map<string,null|string>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2144
Parameters
Section titled “Parameters”Key[]
options?
Section titled “options?”KVNamespaceGetOptions<"text">
Returns
Section titled “Returns”Promise<Map<string, null | string>>
Call Signature
Section titled “Call Signature”get<
ExpectedValue>(key,options?):Promise<Map<string,null|ExpectedValue>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2148
Type Parameters
Section titled “Type Parameters”ExpectedValue
Section titled “ExpectedValue”ExpectedValue = unknown
Parameters
Section titled “Parameters”Key[]
options?
Section titled “options?”KVNamespaceGetOptions<"json">
Returns
Section titled “Returns”Promise<Map<string, null | ExpectedValue>>
getWithMetadata()
Section titled “getWithMetadata()”Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,options?):Promise<KVNamespaceGetWithMetadataResult<string,Metadata>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2160
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key
options?
Section titled “options?”Partial<KVNamespaceGetOptions<undefined>>
Returns
Section titled “Returns”Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>
Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,type):Promise<KVNamespaceGetWithMetadataResult<string,Metadata>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2164
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key
"text"
Returns
Section titled “Returns”Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>
Call Signature
Section titled “Call Signature”getWithMetadata<
ExpectedValue,Metadata>(key,type):Promise<KVNamespaceGetWithMetadataResult<ExpectedValue,Metadata>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2168
Type Parameters
Section titled “Type Parameters”ExpectedValue
Section titled “ExpectedValue”ExpectedValue = unknown
Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key
"json"
Returns
Section titled “Returns”Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>
Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,type):Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer,Metadata>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2172
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key
"arrayBuffer"
Returns
Section titled “Returns”Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer, Metadata>>
Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,type):Promise<KVNamespaceGetWithMetadataResult<ReadableStream<any>,Metadata>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2176
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key
"stream"
Returns
Section titled “Returns”Promise<KVNamespaceGetWithMetadataResult<ReadableStream<any>, Metadata>>
Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,options):Promise<KVNamespaceGetWithMetadataResult<string,Metadata>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2180
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key
options
Section titled “options”KVNamespaceGetOptions<"text">
Returns
Section titled “Returns”Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>
Call Signature
Section titled “Call Signature”getWithMetadata<
ExpectedValue,Metadata>(key,options):Promise<KVNamespaceGetWithMetadataResult<ExpectedValue,Metadata>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2184
Type Parameters
Section titled “Type Parameters”ExpectedValue
Section titled “ExpectedValue”ExpectedValue = unknown
Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key
options
Section titled “options”KVNamespaceGetOptions<"json">
Returns
Section titled “Returns”Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>
Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,options):Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer,Metadata>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2188
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key
options
Section titled “options”KVNamespaceGetOptions<"arrayBuffer">
Returns
Section titled “Returns”Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer, Metadata>>
Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,options):Promise<KVNamespaceGetWithMetadataResult<ReadableStream<any>,Metadata>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2192
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key
options
Section titled “options”KVNamespaceGetOptions<"stream">
Returns
Section titled “Returns”Promise<KVNamespaceGetWithMetadataResult<ReadableStream<any>, Metadata>>
Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,type):Promise<Map<string,KVNamespaceGetWithMetadataResult<string,Metadata>>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2196
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key[]
"text"
Returns
Section titled “Returns”Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>
Call Signature
Section titled “Call Signature”getWithMetadata<
ExpectedValue,Metadata>(key,type):Promise<Map<string,KVNamespaceGetWithMetadataResult<ExpectedValue,Metadata>>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2200
Type Parameters
Section titled “Type Parameters”ExpectedValue
Section titled “ExpectedValue”ExpectedValue = unknown
Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key[]
"json"
Returns
Section titled “Returns”Promise<Map<string, KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>>
Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,options?):Promise<Map<string,KVNamespaceGetWithMetadataResult<string,Metadata>>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2206
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key[]
options?
Section titled “options?”Partial<KVNamespaceGetOptions<undefined>>
Returns
Section titled “Returns”Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>
Call Signature
Section titled “Call Signature”getWithMetadata<
Metadata>(key,options?):Promise<Map<string,KVNamespaceGetWithMetadataResult<string,Metadata>>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2210
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key[]
options?
Section titled “options?”KVNamespaceGetOptions<"text">
Returns
Section titled “Returns”Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>
Call Signature
Section titled “Call Signature”getWithMetadata<
ExpectedValue,Metadata>(key,options?):Promise<Map<string,KVNamespaceGetWithMetadataResult<ExpectedValue,Metadata>>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2214
Type Parameters
Section titled “Type Parameters”ExpectedValue
Section titled “ExpectedValue”ExpectedValue = unknown
Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”Key[]
options?
Section titled “options?”KVNamespaceGetOptions<"json">
Returns
Section titled “Returns”Promise<Map<string, KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>>
list()
Section titled “list()”list<
Metadata>(options?):Promise<KVNamespaceListResult<Metadata,Key>>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2152
Type Parameters
Section titled “Type Parameters”Metadata
Section titled “Metadata”Metadata = unknown
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<KVNamespaceListResult<Metadata, Key>>
put(
key,value,options?):Promise<void>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2155
Parameters
Section titled “Parameters”Key
string | ArrayBuffer | ArrayBufferView<ArrayBufferLike> | ReadableStream<any>
options?
Section titled “options?”Returns
Section titled “Returns”Promise<void>