Skip to content

jpweijers/redis-typescript

Repository files navigation

TypeScript Redis clone

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.

Run the server

deno --allow-net main.ts

Usage

You can interact with the server using the redis-cli.

PING

> redis-cli PING
  PONG

ECHO

> redis-cli ECHO test123
  test123

SET

> redis-cli SET fruit kiwi
  OK

GET

> redis-cli GET fruit
  kiwi

> redis-cli GET veg
  (nil)

SET with expiraton

> redis-cli SET fruit kiwi 100
  OK
> redis-cli GET fruit
  kiwi

# after some time
> redis-cli GET fruit
  (nil)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published