Skip to content

Commit 6579aa6

Browse files
committed
(docs) jsdocs for std commands
1 parent 1e53b6b commit 6579aa6

File tree

354 files changed

+2802
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+2802
-1
lines changed

packages/client/lib/commands/ACL_CAT.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { RedisArgument, ArrayReply, BlobStringReply, Command } from '../RESP/typ
44
export default {
55
NOT_KEYED_COMMAND: true,
66
IS_READ_ONLY: true,
7+
/**
8+
* Lists ACL categories or commands in a category
9+
* @param parser - The Redis command parser
10+
* @param categoryName - Optional category name to filter commands
11+
*/
712
parseCommand(parser: CommandParser, categoryName?: RedisArgument) {
813
parser.push('ACL', 'CAT');
914
if (categoryName) {

packages/client/lib/commands/ACL_DELUSER.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import { RedisVariadicArgument } from './generic-transformers';
55
export default {
66
NOT_KEYED_COMMAND: true,
77
IS_READ_ONLY: true,
8+
/**
9+
* Deletes one or more users from the ACL
10+
* @param parser - The Redis command parser
11+
* @param username - Username(s) to delete
12+
*/
813
parseCommand(parser: CommandParser, username: RedisVariadicArgument) {
914
parser.push('ACL', 'DELUSER');
1015
parser.pushVariadic(username);

packages/client/lib/commands/ACL_DRYRUN.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import { RedisArgument, SimpleStringReply, BlobStringReply, Command } from '../R
44
export default {
55
NOT_KEYED_COMMAND: true,
66
IS_READ_ONLY: true,
7+
/**
8+
* Simulates ACL operations without executing them
9+
* @param parser - The Redis command parser
10+
* @param username - Username to simulate ACL operations for
11+
* @param command - Command arguments to simulate
12+
*/
713
parseCommand(parser: CommandParser, username: RedisArgument, command: Array<RedisArgument>) {
814
parser.push('ACL', 'DRYRUN', username, ...command);
915
},

packages/client/lib/commands/ACL_GENPASS.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { BlobStringReply, Command } from '../RESP/types';
44
export default {
55
NOT_KEYED_COMMAND: true,
66
IS_READ_ONLY: true,
7+
/**
8+
* Generates a secure password for ACL users
9+
* @param parser - The Redis command parser
10+
* @param bits - Optional number of bits for password entropy
11+
*/
712
parseCommand(parser: CommandParser, bits?: number) {
813
parser.push('ACL', 'GENPASS');
914
if (bits) {

packages/client/lib/commands/ACL_GETUSER.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ type AclUser = TuplesToMapReply<[
2020
export default {
2121
NOT_KEYED_COMMAND: true,
2222
IS_READ_ONLY: true,
23+
/**
24+
* Returns ACL information about a specific user
25+
* @param parser - The Redis command parser
26+
* @param username - Username to get information for
27+
*/
2328
parseCommand(parser: CommandParser, username: RedisArgument) {
2429
parser.push('ACL', 'GETUSER', username);
2530
},

packages/client/lib/commands/ACL_LIST.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { ArrayReply, BlobStringReply, Command } from '../RESP/types';
44
export default {
55
NOT_KEYED_COMMAND: true,
66
IS_READ_ONLY: true,
7+
/**
8+
* Returns all configured ACL users and their permissions
9+
* @param parser - The Redis command parser
10+
*/
711
parseCommand(parser: CommandParser) {
812
parser.push('ACL', 'LIST');
913
},

packages/client/lib/commands/ACL_LOAD.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { SimpleStringReply, Command } from '../RESP/types';
44
export default {
55
NOT_KEYED_COMMAND: true,
66
IS_READ_ONLY: true,
7+
/**
8+
* Reloads ACL configuration from the ACL file
9+
* @param parser - The Redis command parser
10+
*/
711
parseCommand(parser: CommandParser) {
812
parser.push('ACL', 'LOAD');
913
},

packages/client/lib/commands/ACL_LOG.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export type AclLogReply = ArrayReply<TuplesToMapReply<[
2121
export default {
2222
NOT_KEYED_COMMAND: true,
2323
IS_READ_ONLY: true,
24+
/**
25+
* Returns ACL security events log entries
26+
* @param parser - The Redis command parser
27+
* @param count - Optional maximum number of entries to return
28+
*/
2429
parseCommand(parser: CommandParser, count?: number) {
2530
parser.push('ACL', 'LOG');
2631
if (count != undefined) {

packages/client/lib/commands/ACL_LOG_RESET.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import ACL_LOG from './ACL_LOG';
55
export default {
66
NOT_KEYED_COMMAND: true,
77
IS_READ_ONLY: ACL_LOG.IS_READ_ONLY,
8+
/**
9+
* Clears the ACL security events log
10+
* @param parser - The Redis command parser
11+
*/
812
parseCommand(parser: CommandParser) {
913
parser.push('ACL', 'LOG', 'RESET');
1014
},

packages/client/lib/commands/ACL_SAVE.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { SimpleStringReply, Command } from '../RESP/types';
44
export default {
55
NOT_KEYED_COMMAND: true,
66
IS_READ_ONLY: true,
7+
/**
8+
* Saves the current ACL configuration to the ACL file
9+
* @param parser - The Redis command parser
10+
*/
711
parseCommand(parser: CommandParser) {
812
parser.push('ACL', 'SAVE');
913
},

0 commit comments

Comments
 (0)