Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodisLabs/codis
/ NewInt
Function
NewInt
pkg/proxy/redis/resp.go:80–85 ·
view source on GitHub ↗
(value []byte)
Source
from the content-addressed store, hash-verified
78
}
79
80
func
NewInt(value []byte) *Resp {
81
r := &Resp{}
82
r.Type = TypeInt
83
r.Value = value
84
return
r
85
}
86
87
func
NewBulkBytes(value []byte) *Resp {
88
r := &Resp{}
Callers
2
TestEncodeInt
Function · 0.85
TestEncodeArray
Function · 0.85
Calls
no outgoing calls
Tested by
2
TestEncodeInt
Function · 0.68
TestEncodeArray
Function · 0.68