@@ -20,7 +20,7 @@ type VectorSetCmdable interface {
2020 VRandMemberCount (ctx context.Context , key string , count int ) * StringSliceCmd
2121 VRem (ctx context.Context , key , element string ) * BoolCmd
2222 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
2424 VSim (ctx context.Context , key string , val Vector ) * StringSliceCmd
2525 VSimWithScores (ctx context.Context , key string , val Vector ) * VectorScoreSliceCmd
2626 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
249249 return cmd
250250}
251251
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 ""`.
254254// 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 {
256256 cmd := NewBoolCmd (ctx , "vsetattr" , key , element , "" )
257257 _ = c (ctx , cmd )
258258 return cmd
0 commit comments