MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / zparseRange

Function zparseRange

sorted_sets.go:34–44  ·  view source on GitHub ↗
(a1 string, a2 string)

Source from the content-addressed store, hash-verified

32}
33
34func zparseRange(a1 string, a2 string) (start int, stop int, err error) {
35 if start, err = strconv.Atoi(a1); err != nil {
36 return
37 }
38
39 if stop, err = strconv.Atoi(a2); err != nil {
40 return
41 }
42
43 return
44}
45
46func zparseScoreRange(minBuf []byte, maxBuf []byte) (min int64, max int64, err error) {
47 if strings.ToLower(hack.String(minBuf)) == "-inf" {

Callers 2

cmdZRANGEFunction · 0.85
cmdZREVRANGEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected