You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
* (docs) bloom: add jsdocs for all commands * (docs) json: add jsdocs * (docs) search: add jsdocs for all commands * (docs) jsdocs for std commands * (docs) jsdoc comments to time series commands
25 lines
621 B
TypeScript
25 lines
621 B
TypeScript
import { BlobStringReply, Command } from '../RESP/types';
|
|
import HSCAN from './HSCAN';
|
|
|
|
export default {
|
|
IS_READ_ONLY: true,
|
|
/**
|
|
* Constructs the HSCAN command with NOVALUES option
|
|
*
|
|
* @param args - The same parameters as HSCAN command
|
|
* @see https://redis.io/commands/hscan/
|
|
*/
|
|
parseCommand(...args: Parameters<typeof HSCAN.parseCommand>) {
|
|
const parser = args[0];
|
|
|
|
HSCAN.parseCommand(...args);
|
|
parser.push('NOVALUES');
|
|
},
|
|
transformReply([cursor, fields]: [BlobStringReply, Array<BlobStringReply>]) {
|
|
return {
|
|
cursor,
|
|
fields
|
|
};
|
|
}
|
|
} as const satisfies Command;
|