Skip to content

DaviGGA/puncake-redis

Repository files navigation

Description

Puncake

A key-value store based on Redis

Why puncake ???

  • I think giving a name and a face is better than just "redis-clone" or something like that.
  • Bun + pancake
  • Redis is a group of "plates" stacked upon each other, i wanted some food that can also be stacked to represent my implementation
  • It is also a pun!

Requirements

  • bun 1.2.5

How to run

Install dependencies

$ bun install

Run project

$ bun app/main.ts

How to interact

The application is a socket, you can interact with in many ways

Send commands via nc

Redis uses a protocol called Redis serialization protocol (RESP)

printf '*2\r\n$4\r\nECHO\r\n$3\r\nhey\r\n' | nc localhost <PORT>

Using redis-cli

You can also uses Redis CLI for a more user-friendly interaction

redis-cli ECHO hey

Based on Codecrafters Redis challenge

About

A redis clone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors