@@ -20,7 +20,7 @@ type VectorSetCmdable interface {
20
20
VRandMemberCount (ctx context.Context , key string , count int ) * StringSliceCmd
21
21
VRem (ctx context.Context , key , element string ) * BoolCmd
22
22
VSetAttr (ctx context.Context , key , element string , attr VectorAttributeMarshaller ) * BoolCmd
23
- VRemAttr (ctx context.Context , key , element string ) * BoolCmd
23
+ VClearAttributes (ctx context.Context , key , element string ) * BoolCmd
24
24
VSim (ctx context.Context , key string , val Vector ) * StringSliceCmd
25
25
VSimWithScores (ctx context.Context , key string , val Vector ) * VectorScoreSliceCmd
26
26
VSimWithArgs (ctx context.Context , key string , val Vector , args * VSimArgs ) * StringSliceCmd
@@ -249,10 +249,10 @@ func (c cmdable) VSetAttr(ctx context.Context, key, element string, attr VectorA
249
249
return cmd
250
250
}
251
251
252
- // `VREMATTR` removes attributes on a vector set element.
253
- // is equal to `VSETATTR key element ""`
252
+ // `VClearAttributes` clear attributes on a vector set element.
253
+ // The implementation of `VClearAttributes` is execute command `VSETATTR key element ""`.
254
254
// note: the API is experimental and may be subject to change.
255
- func (c cmdable ) VRemAttr (ctx context.Context , key , element string ) * BoolCmd {
255
+ func (c cmdable ) VClearAttributes (ctx context.Context , key , element string ) * BoolCmd {
256
256
cmd := NewBoolCmd (ctx , "vsetattr" , key , element , "" )
257
257
_ = c (ctx , cmd )
258
258
return cmd
0 commit comments