A Redis clone built with TypeScript and Deno, designed to implement core Redis commands and functionalities. This project serves as an educational tool for exploring the underlying mechanics of Redis. Note: it is not intended as a production-ready Redis replacement.
deno --allow-net main.ts
You can interact with the server using the redis-cli.
> redis-cli PING
PONG
> redis-cli ECHO test123
test123
> redis-cli SET fruit kiwi
OK
> redis-cli GET fruit
kiwi
> redis-cli GET veg
(nil)
> redis-cli SET fruit kiwi 100
OK
> redis-cli GET fruit
kiwi
# after some time
> redis-cli GET fruit
(nil)