Screen.Recording.2024-01-20.at.6.47.48.PM.mov
- "In memory db" means that it's literally just a hash map that reads/ updates/ deletes values at run time as they come in
- Create a TCP server bounded to a specific port (and address) and listen for incoming stream
- convert stream into a string
- Parse string into tokens
- Interact with cache through generated tokens to update it
- return a response to the stream
zig run main.zig
then interact with database with netcat
i.e. nc 127.0.0.1 8080
.ADDRINUSE => return error.AddressInUse,
This means the port & IP you've got is being used. You can either:
- Choose a different port
- Kill the process running at that port:
lsof -i :8080
kill 1234
(or whatever the id from above is)