文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@ioredis/commands/built/index.d.ts
编辑文件内容
/// <reference types="node" /> /** * Redis command list * * All commands are lowercased. */ export declare const list: string[]; /** * Check if the command exists */ export declare function exists(commandName: string): boolean; /** * Check if the command has the flag * * Some of possible flags: readonly, noscript, loading */ export declare function hasFlag(commandName: string, flag: string): boolean; /** * Get indexes of keys in the command arguments * * @example * ```javascript * getKeyIndexes('set', ['key', 'value']) // [0] * getKeyIndexes('mget', ['key1', 'key2']) // [0, 1] * ``` */ export declare function getKeyIndexes(commandName: string, args: (string | Buffer | number)[], options?: { parseExternalKey: boolean; }): number[];
修改文件时间
将文件时间修改为当前时间的前一年
删除文件