Building the In-Memory Store: Strings, Lists, Hashes and Expiry (opens in new tab)
In the previous post, I wrote about RESP — the protocol layer that lets a Redis server understand commands coming over TCP. But parsing a command is only the first step. Once the server receives something like: SET name Alice and the RESP parser converts it into: ["SET", "name", "Alice"] the next question is: Where does this data actually live? That is what this post is about. In this part of my Redis clone, I built the in-memory storage layer that supports: Strings Lists Hashes Key expiry Ty...
Read the original article