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