MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / ZAdd

Method ZAdd

structure/zset.go:486–488  ·  view source on GitHub ↗

ZAdd adds a value with its given score and member to a sorted set (ZSet), associated with the provided key. It is a method on the ZSetStructure type. Parameters: key: a string that represents the key of the sorted set. score: an integer value that determines the order of the added element in

(key string, score int, member string, value string)

Source from the content-addressed store, hash-verified

484//
485// If the key is an empty string, an error will be returned
486func (zs *ZSetStructure) ZAdd(key string, score int, member string, value string) error {
487 return zs.ZAdds(key, []ZSetValue{{score: score, member: member, value: value}}...)
488}
489
490// ZAdds adds a value with its given score and member to a sorted set (ZSet), associated with
491// the provided key. It is a method on the ZSetStructure type.

Callers

nothing calls this directly

Calls 1

ZAddsMethod · 0.95

Tested by

no test coverage detected