https://github.com/redis/redis/tree/unstable/src
Entry point here at line 6816: https://github.com/redis/redis/blob/unstable/src/server.c
Also "Code Reading" will be useful. - https://www.amazon.com/Code-Reading-Open-Source-Perspective/...
"Code Reading" tends to be criticized, but I think mostly unfairly.