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

Method updateZSet

structure/zset.go:927–929  ·  view source on GitHub ↗

updateZSet updates or inserts a member in a sorted set and saves the change in storage.

(zSet *FZSet, key string, score int, member string, value interface{})

Source from the content-addressed store, hash-verified

925
926// updateZSet updates or inserts a member in a sorted set and saves the change in storage.
927func (zs *ZSetStructure) updateZSet(zSet *FZSet, key string, score int, member string, value interface{}) error {
928 return zSet.InsertNode(score, member, value)
929}
930
931// InsertNode is a method on the FZSet structure. It inserts a new node
932// or updates an existing node in the skip list and the dictionary.

Callers 1

ZAddsMethod · 0.95

Calls 1

InsertNodeMethod · 0.80

Tested by

no test coverage detected