Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/keydb/mod.ts>Adapter

Simple Key-value storage module with support for multiple database backends.
Latest
interface Adapter
Re-export
import { type Adapter } from "https://deno.land/x/keydb@1.0.0/mod.ts";

Properties

optional
awaitReady: Promise<Adapter>

Methods

set(
key: string,
value: any,
namespace: string,
ttl: number,
): this | Promise<this>
get(key: string, namespace: string): KeydbFields | undefined | Promise<KeydbFields | undefined>
delete(key: string, namespace: string): boolean | Promise<boolean>
has(key: string, namespace: string): boolean | Promise<boolean>
clear(namespace: string): this | Promise<this>
keys(namespace: string): string[] | Promise<string[]>
deleteExpired(namespace: string): void | Promise<void>