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

Function ReadStrings

IceFireDB-Redis-Proxy/test/proto/proto.go:129–143  ·  view source on GitHub ↗
(b string)

Source from the content-addressed store, hash-verified

127}
128
129func ReadStrings(b string) ([]string, error) {
130 elems, err := ReadArray(b)
131 if err != nil {
132 return nil, err
133 }
134 var res []string
135 for _, e := range elems {
136 s, err := ReadString(e)
137 if err != nil {
138 return nil, err
139 }
140 res = append(res, s)
141 }
142 return res, nil
143}
144
145// Read a single command, returning it raw. Used to read replies from redis.
146// Understands RESP3 proto.

Callers 2

TestReadStringsFunction · 0.70
DoStringsMethod · 0.70

Calls 2

ReadArrayFunction · 0.70
ReadStringFunction · 0.70

Tested by 1

TestReadStringsFunction · 0.56