MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / isRedisRESPPrefix

Function isRedisRESPPrefix

internal/api/redis_queue_protocol.go:27–34  ·  view source on GitHub ↗
(prefix byte)

Source from the content-addressed store, hash-verified

25}
26
27func isRedisRESPPrefix(prefix byte) bool {
28 switch prefix {
29 case '*', '$', '+', '-', ':':
30 return true
31 default:
32 return false
33 }
34}
35
36func (s *Server) handleRedisConnection(conn net.Conn, reader *bufio.Reader) {
37 if s == nil || conn == nil {

Callers 1

routeMuxConnectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected