文件操作 - Commander.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/ioredis/built/utils/Commander.d.ts
编辑文件内容
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;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件