MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / KVNamespace

Interface KVNamespace

apps/cloud/worker-configuration.d.ts:2055–2150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2053 cacheStatus: string | null;
2054 };
2055interface KVNamespace<Key extends string = string> {
2056 get(key: Key, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<string | null>;
2057 get(key: Key, type: "text"): Promise<string | null>;
2058 get<ExpectedValue = unknown>(key: Key, type: "json"): Promise<ExpectedValue | null>;
2059 get(key: Key, type: "arrayBuffer"): Promise<ArrayBuffer | null>;
2060 get(key: Key, type: "stream"): Promise<ReadableStream | null>;
2061 get(key: Key, options?: KVNamespaceGetOptions<"text">): Promise<string | null>;
2062 get<ExpectedValue = unknown>(
2063 key: Key,
2064 options?: KVNamespaceGetOptions<"json">,
2065 ): Promise<ExpectedValue | null>;
2066 get(key: Key, options?: KVNamespaceGetOptions<"arrayBuffer">): Promise<ArrayBuffer | null>;
2067 get(key: Key, options?: KVNamespaceGetOptions<"stream">): Promise<ReadableStream | null>;
2068 get(key: Array<Key>, type: "text"): Promise<Map<string, string | null>>;
2069 get<ExpectedValue = unknown>(
2070 key: Array<Key>,
2071 type: "json",
2072 ): Promise<Map<string, ExpectedValue | null>>;
2073 get(
2074 key: Array<Key>,
2075 options?: Partial<KVNamespaceGetOptions<undefined>>,
2076 ): Promise<Map<string, string | null>>;
2077 get(
2078 key: Array<Key>,
2079 options?: KVNamespaceGetOptions<"text">,
2080 ): Promise<Map<string, string | null>>;
2081 get<ExpectedValue = unknown>(
2082 key: Array<Key>,
2083 options?: KVNamespaceGetOptions<"json">,
2084 ): Promise<Map<string, ExpectedValue | null>>;
2085 list<Metadata = unknown>(
2086 options?: KVNamespaceListOptions,
2087 ): Promise<KVNamespaceListResult<Metadata, Key>>;
2088 put(
2089 key: Key,
2090 value: string | ArrayBuffer | ArrayBufferView | ReadableStream,
2091 options?: KVNamespacePutOptions,
2092 ): Promise<void>;
2093 getWithMetadata<Metadata = unknown>(
2094 key: Key,
2095 options?: Partial<KVNamespaceGetOptions<undefined>>,
2096 ): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>;
2097 getWithMetadata<Metadata = unknown>(
2098 key: Key,
2099 type: "text",
2100 ): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>;
2101 getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(
2102 key: Key,
2103 type: "json",
2104 ): Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>;
2105 getWithMetadata<Metadata = unknown>(
2106 key: Key,
2107 type: "arrayBuffer",
2108 ): Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer, Metadata>>;
2109 getWithMetadata<Metadata = unknown>(
2110 key: Key,
2111 type: "stream",
2112 ): Promise<KVNamespaceGetWithMetadataResult<ReadableStream, Metadata>>;

Callers 32

applyExpansionsFunction · 0.65
FreeformComboboxFunction · 0.65
AddAccountModalViewFunction · 0.65
buildAccountGroupsFunction · 0.65
buildTreeFunction · 0.65
ToolTreeBodyFunction · 0.65
IntegrationDetailPageFunction · 0.65
testing.test.tsFile · 0.65
promise.test.tsFile · 0.65
core-tools.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected