class RedisAdapter
implements Adapter
import { RedisAdapter } from "https://deno.land/x/keydb@1.0.0/redis.ts";
Constructors
new
RedisAdapter(client: Redis, table?: string)Properties
db: Redis
Methods
clear(namespace?): Promise<this>
delete(key: string, namespace?): Promise<boolean>
deleteExpired(_namespace?): Promise<void>
get(key: string, namespace?): Promise<KeydbFields | undefined>
getPrefixedKey(key: string, ns?)
has(key: string, namespace?): Promise<boolean>
keys(namespace?): Promise<string[]>
set(): Promise<this>
key: string,
value: any,
namespace?,
ttl?,
Static Methods
connect(dbOptions: RedisConnectOptions, table?: string)
Connect to a Postgres Database and create Adapter.