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

Method valuesDidntChange

structure/zset.go:918–924  ·  view source on GitHub ↗

valuesDidntChange checks if the data of a specific member in a sorted set remained the same.

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

Source from the content-addressed store, hash-verified

916
917// valuesDidntChange checks if the data of a specific member in a sorted set remained the same.
918func (zs *ZSetStructure) valuesDidntChange(zSet *FZSet, score int, member string, value interface{}) bool {
919 if v, ok := zSet.dict[member]; ok {
920 return v.score == score && v.member == member && v.value == value
921 }
922
923 return false
924}
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 {

Callers 1

ZAddsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected