(key string, value []byte)
| 244 | } |
| 245 | |
| 246 | func (z *SortedSet) ZScore(key string, value []byte) (float64, error) { |
| 247 | if sortedSet, ok := z.M[key]; ok { |
| 248 | node := sortedSet.GetByValue(value) |
| 249 | if node != nil { |
| 250 | return float64(sortedSet.GetByValue(value).score), nil |
| 251 | } |
| 252 | return 0, ErrSortedSetMemberNotExist |
| 253 | } |
| 254 | return 0, ErrSortedSetNotFound |
| 255 | } |
| 256 | |
| 257 | func (z *SortedSet) ZExist(key string, value []byte) (bool, error) { |
| 258 | if sortedSet, ok := z.M[key]; ok { |
nothing calls this directly
no test coverage detected