Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
50
Frontend-Learner/node_modules/ioredis/built/utils/Commander.d.ts
generated
vendored
Normal file
50
Frontend-Learner/node_modules/ioredis/built/utils/Commander.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
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;
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
scriptsSet: {};
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
addedBuiltinSet: Set<string>;
|
||||
/**
|
||||
* Return supported builtin commands
|
||||
*/
|
||||
getBuiltinCommands(): string[];
|
||||
/**
|
||||
* Create a builtin command
|
||||
*/
|
||||
createBuiltinCommand(commandName: string): {
|
||||
string: any;
|
||||
buffer: any;
|
||||
};
|
||||
/**
|
||||
* Create add builtin command
|
||||
*/
|
||||
addBuiltinCommand(commandName: string): void;
|
||||
/**
|
||||
* Define a custom command using lua script
|
||||
*/
|
||||
defineCommand(name: string, definition: {
|
||||
lua: string;
|
||||
numberOfKeys?: number;
|
||||
readOnly?: boolean;
|
||||
}): void;
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
sendCommand(command: Command, stream?: WriteableStream, node?: unknown): unknown;
|
||||
}
|
||||
interface Commander<Context> extends RedisCommander<Context> {
|
||||
}
|
||||
export default Commander;
|
||||
Loading…
Add table
Add a link
Reference in a new issue