KVNamespace
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1778
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1891
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1779
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1783
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1784
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1788
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1789
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1790
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1794
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1798
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1802
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1806
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1807
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1811
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1815
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1819
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1831
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1835
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1839
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1843
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1847
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1851
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1855
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1859
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1863
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1867
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1871
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1877
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1881
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1885
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1823
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:1826
Parameters
Section titled “Parameters”Key
string | ArrayBuffer | ArrayBufferView<ArrayBufferLike> | ReadableStream<any>
options?
Section titled “options?”Returns
Section titled “Returns”Promise<void>