Skip to content

Commit bd30653

Browse files
committed
rename a API: VRemAttr -> VClearAttributes
Signed-off-by: fukua95 <fukua95@gmail.com>
1 parent e2c26d3 commit bd30653

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vectorset_commands.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)