(key string, value []byte)
| 255 | } |
| 256 | |
| 257 | func (z *SortedSet) ZExist(key string, value []byte) (bool, error) { |
| 258 | if sortedSet, ok := z.M[key]; ok { |
| 259 | hash, err := utils.GetFnv32(value) |
| 260 | if err != nil { |
| 261 | return false, err |
| 262 | } |
| 263 | _, ok := sortedSet.dict[hash] |
| 264 | return ok, nil |
| 265 | } |
| 266 | return false, ErrSortedSetNotFound |
| 267 | } |
| 268 | |
| 269 | // SCORE represents the score type. |
| 270 | type SCORE float64 |
no test coverage detected