feat(redis): enhance Redis protocol handling with subscription and queue operations

- Added support for advanced RESP commands (`AUTH`, `SUBSCRIBE`, `RPOP`, `LPOP`) with extended functionality.
- Implemented queue operations for usage events via `RPOP` and `LPOP` commands.
- Introduced subscription handling with new Pub/Sub message features and error handling improvements.
- Updated Redis connection logic to enforce authentication requirements and validate inputs.
- Expanded related unit tests to cover new scenarios and edge cases.
This commit is contained in:
Luis Pater
2026-05-20 17:20:03 +08:00
parent f1ee883cd3
commit a726e37394
3 changed files with 683 additions and 30 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ func (s *Server) routeMuxConnection(conn net.Conn, httpListener *muxListener) {
if isRedisRESPPrefix(prefix[0]) {
_ = conn.SetReadDeadline(time.Time{})
s.handleRedisConnection(conn)
s.handleRedisConnection(conn, reader)
return
}