KVNamespace
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1785
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1898
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1786
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1790
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1791
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1795
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1796
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1797
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1801
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1805
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1809
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1813
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1814
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1818
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1822
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1826
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1838
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1842
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1846
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1850
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1854
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1858
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1862
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1866
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1870
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1874
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1878
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1884
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1888
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1892
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1830
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1833
Parameters
Section titled “Parameters”Key
string
| ArrayBuffer
| ArrayBufferView
<ArrayBufferLike
> | ReadableStream
<any
>
options?
Section titled “options?”Returns
Section titled “Returns”Promise
<void
>