KVNamespace
Functions
Link copied to clipboard
abstract fun get(key: Key, options: KVNamespaceGetOptionsPartial<Nothing?> = definedExternally): Promise<String?>
abstract fun <ExpectedValue> get(key: Key, options: KVNamespaceGetOptions<String> = definedExternally): Promise<ExpectedValue?>
Link copied to clipboard
abstract fun <Metadata> getWithMetadata(key: Key): Promise<KVNamespaceGetWithMetadataResult<String, Metadata>>
abstract fun <Metadata> getWithMetadata(key: Key, options: KVNamespaceGetOptionsPartial<Nothing?> = definedExternally): Promise<KVNamespaceGetWithMetadataResult<String, Metadata>>
abstract fun <ExpectedValue, Metadata> getWithMetadata(key: Key, options: KVNamespaceGetOptions<String>): Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>
abstract fun <ExpectedValue, Metadata> getWithMetadata(key: Key, type: String): Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>
Link copied to clipboard
Link copied to clipboard
abstract fun put(key: Key, value: ReadableStream<Uint8Array>, options: KVNamespacePutOptions = definedExternally): Promise<Unit>
abstract fun put(key: Key, value: ArrayBuffer, options: KVNamespacePutOptions = definedExternally): Promise<Unit>
abstract fun put(key: Key, value: ArrayBufferView, options: KVNamespacePutOptions = definedExternally): Promise<Unit>