NodeRedis/node-redis

View on GitHub
packages/client/lib/commands/HINCRBYFLOAT.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { CommandParser } from '../client/parser';
import { RedisArgument, BlobStringReply, Command } from '../RESP/types';

export default {
  parseCommand(
    parser: CommandParser,
    key: RedisArgument,
    field: RedisArgument,
    increment: number
  ) {
    parser.push('HINCRBYFLOAT');
    parser.pushKey(key);
    parser.push(field, increment.toString());
  },
  transformReply: undefined as unknown as () => BlobStringReply
} as const satisfies Command;