This project is a simple in-memory key-value store running on top of TCP.
Clients connect to the server over TCP and send plain text protocol commands.
go run ./cmdPUT <key> <value>: Store a value for a key.GET <key>: Retrieve the value for a key.DEL <key>: Delete a key-value pair.LIST: List all key-value pairs askey=valuelines.
To interact with the server, use any TCP client tool such as telnet or nc (netcat), then pass your commands.
Examples:
- One-shot with
nc:echo "PUT name sean" | nc localhost 8080 - One-shot with
nc:echo "GET name" | nc localhost 8080 - Interactive with
telnet:telnet localhost 8080and then type commands likePUT city sf,GET city, orLIST.