Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

StorageArea

import { StorageArea } from "https://raw.githubusercontent.com/worker-tools/deno-kv-storage/master/mod.ts";
class StorageArea implements StorageArea {
constructor(name?: string, options?: DenoStorageAreaOptions);
backingStore();
async clear();
async delete(key: AllowedKey);
async *entries<T>(): AsyncGenerator<[Key, T]>;
async get<T>(key: AllowedKey): Promise<T | undefined>;
async *keys(): AsyncGenerator<Key>;
async set<T>(key: AllowedKey, value: T | undefined): Promise<void>;
async *values<T>(): AsyncGenerator<T>;
 
static defaultURL?: DB_URL;
}

§Implements

§Constructors

§
new StorageArea(name?: string, options?: DenoStorageAreaOptions)
[src]

§Methods

§
backingStore()
[src]
§
clear()
[src]
§
delete(key: AllowedKey)
[src]
§
entries<T>(): AsyncGenerator<[Key, T]>
[src]
§
get<T>(key: AllowedKey): Promise<T | undefined>
[src]
§
keys(): AsyncGenerator<Key>
[src]
§
set<T>(key: AllowedKey, value: T | undefined): Promise<void>
[src]
§
values<T>(): AsyncGenerator<T>
[src]

§Static Properties

§
defaultURL: DB_URL
[src]