初始化环境文件

This commit is contained in:
CN-JS-HuiBai
2026-04-04 12:49:09 +08:00
parent 07742d2688
commit c607af6fac
5971 changed files with 515160 additions and 18 deletions

34
node_modules/@ioredis/commands/built/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,34 @@
/// <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, options?: {
caseInsensitive?: boolean;
}): boolean;
/**
* Check if the command has the flag
*
* Some of possible flags: readonly, noscript, loading
*/
export declare function hasFlag(commandName: string, flag: string, options?: {
nameCaseInsensitive?: boolean;
}): 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;
nameCaseInsensitive?: boolean;
}): number[];