MCPcopy Index your code
hub / github.com/CodisLabs/codis / NewString

Function NewString

pkg/proxy/redis/resp.go:62–67  ·  view source on GitHub ↗
(value []byte)

Source from the content-addressed store, hash-verified

60}
61
62func NewString(value []byte) *Resp {
63 r := &Resp{}
64 r.Type = TypeString
65 r.Value = value
66 return r
67}
68
69func NewError(value []byte) *Resp {
70 r := &Resp{}

Callers 1

TestEncodeStringFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestEncodeStringFunction · 0.68