1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

feat: added support for new bitop operations (#3001)

refactored bitop tests, covered all operations

updated default docker version on all packages
This commit is contained in:
Pavel Pashov
2025-06-19 13:56:00 +03:00
committed by GitHub
parent 2b3140bb72
commit b52177752e
10 changed files with 77 additions and 13 deletions

View File

@@ -2,14 +2,14 @@ import { CommandParser } from '../client/parser';
import { NumberReply, Command, RedisArgument } from '../RESP/types';
import { RedisVariadicArgument } from './generic-transformers';
export type BitOperations = 'AND' | 'OR' | 'XOR' | 'NOT';
export type BitOperations = 'AND' | 'OR' | 'XOR' | 'NOT' | 'DIFF' | 'DIFF1' | 'ANDOR' | 'ONE';
export default {
IS_READ_ONLY: false,
/**
* Performs bitwise operations between strings
* @param parser - The Redis command parser
* @param operation - Bitwise operation to perform: AND, OR, XOR, NOT
* @param operation - Bitwise operation to perform: AND, OR, XOR, NOT, DIFF, DIFF1, ANDOR, ONE
* @param destKey - Destination key to store the result
* @param key - Source key(s) to perform operation on
*/