You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
feat: add EPSILON parameter support to VSIM command (#3041)
This commit is contained in:
@@ -4,6 +4,7 @@ import { transformDoubleArgument } from './generic-transformers';
|
||||
|
||||
export interface VSimOptions {
|
||||
COUNT?: number;
|
||||
EPSILON?: number;
|
||||
EF?: number;
|
||||
FILTER?: string;
|
||||
'FILTER-EF'?: number;
|
||||
@@ -44,6 +45,10 @@ export default {
|
||||
parser.push('COUNT', options.COUNT.toString());
|
||||
}
|
||||
|
||||
if (options?.EPSILON !== undefined) {
|
||||
parser.push('EPSILON', options.EPSILON.toString());
|
||||
}
|
||||
|
||||
if (options?.EF !== undefined) {
|
||||
parser.push('EF', options.EF.toString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user