1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import Command from "../Command";
- import { WriteableStream } from "../types";
- import RedisCommander, { ClientContext } from "./RedisCommander";
- export interface CommanderOptions {
- keyPrefix?: string;
- showFriendlyErrorStack?: boolean;
- }
- declare class Commander<Context extends ClientContext = {
- type: "default";
- }> {
- options: CommanderOptions;
-
- scriptsSet: {};
-
- addedBuiltinSet: Set<string>;
-
- getBuiltinCommands(): string[];
-
- createBuiltinCommand(commandName: string): {
- string: any;
- buffer: any;
- };
-
- addBuiltinCommand(commandName: string): void;
-
- defineCommand(name: string, definition: {
- lua: string;
- numberOfKeys?: number;
- readOnly?: boolean;
- }): void;
-
- sendCommand(command: Command, stream?: WriteableStream, node?: unknown): unknown;
- }
- interface Commander<Context> extends RedisCommander<Context> {
- }
- export default Commander;
|