Review funkt
This commit is contained in:
18
node_modules/bullmq/dist/esm/classes/bun-redis-client.d.ts
generated
vendored
Normal file
18
node_modules/bullmq/dist/esm/classes/bun-redis-client.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { IRedisClient } from '../interfaces/redis-client';
|
||||
export type RedisCommandArgument = string | Buffer;
|
||||
export interface BunRedisRawClient {
|
||||
connected: boolean;
|
||||
url?: string;
|
||||
onconnect?: ((...args: any[]) => void) | null;
|
||||
onclose?: ((...args: any[]) => void) | null;
|
||||
onerror?: ((...args: any[]) => void) | null;
|
||||
connect(): Promise<void>;
|
||||
close(): void;
|
||||
send<T = any>(command: string, args: RedisCommandArgument[]): Promise<T>;
|
||||
get(key: string): Promise<string | null | undefined>;
|
||||
smembers(key: string): Promise<unknown[] | null | undefined>;
|
||||
incr(key: string): Promise<number>;
|
||||
}
|
||||
export declare function createBunRedisClient<TClient extends BunRedisRawClient>(client: TClient, opts?: {
|
||||
lazyConnect?: boolean;
|
||||
}): IRedisClient;
|
||||
Reference in New Issue
Block a user