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

feat: add support for vector sets (#2998)

* wip

* improve the vadd api

* resp3 tests

* fix some tests

* extract json helper functions in client package

* use transformJsonReply

* remove the CACHEABLE flag for all vector set commands

currently, client side caching is not supported
for vector set commands by the server

* properly transform vinfo result

* add resp3 test for vlinks

* add more tests for vrandmember

* fix vrem return types

* fix vsetattr return type

* fix vsim_withscores

* implement vlinks_withscores

* set minimum docker image version to 8

* align return types

* add RAW variant for VEMB -> VEMB_RAW

* use the new parseCommand api
This commit is contained in:
Nikolay Karadzhov
2025-06-24 13:35:29 +03:00
committed by GitHub
parent b52177752e
commit c5b4f47975
42 changed files with 1608 additions and 34 deletions

View File

@@ -344,6 +344,20 @@ import ZSCORE from './ZSCORE';
import ZUNION_WITHSCORES from './ZUNION_WITHSCORES';
import ZUNION from './ZUNION';
import ZUNIONSTORE from './ZUNIONSTORE';
import VADD from './VADD';
import VCARD from './VCARD';
import VDIM from './VDIM';
import VEMB from './VEMB';
import VEMB_RAW from './VEMB_RAW';
import VGETATTR from './VGETATTR';
import VINFO from './VINFO';
import VLINKS from './VLINKS';
import VLINKS_WITHSCORES from './VLINKS_WITHSCORES';
import VRANDMEMBER from './VRANDMEMBER';
import VREM from './VREM';
import VSETATTR from './VSETATTR';
import VSIM from './VSIM';
import VSIM_WITHSCORES from './VSIM_WITHSCORES';
export default {
ACL_CAT,
@@ -1037,5 +1051,33 @@ export default {
ZUNION,
zUnion: ZUNION,
ZUNIONSTORE,
zUnionStore: ZUNIONSTORE
zUnionStore: ZUNIONSTORE,
VADD,
vAdd: VADD,
VCARD,
vCard: VCARD,
VDIM,
vDim: VDIM,
VEMB,
vEmb: VEMB,
VEMB_RAW,
vEmbRaw: VEMB_RAW,
VGETATTR,
vGetAttr: VGETATTR,
VINFO,
vInfo: VINFO,
VLINKS,
vLinks: VLINKS,
VLINKS_WITHSCORES,
vLinksWithScores: VLINKS_WITHSCORES,
VRANDMEMBER,
vRandMember: VRANDMEMBER,
VREM,
vRem: VREM,
VSETATTR,
vSetAttr: VSETATTR,
VSIM,
vSim: VSIM,
VSIM_WITHSCORES,
vSimWithScores: VSIM_WITHSCORES
} as const satisfies RedisCommands;