Skip to content

Building a REDIS SERVER in a language without IF statments, LOOPS and MUTABILITY?? 😱

Notifications You must be signed in to change notification settings

ddannyll/redis-gleam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis in Gleam(Lang)

I was bored over the holidays and decided to try build REDIS using Gleam!!

My first time using a functional language to this extent.

Was a bit tricky working without mutability, if statments and loops... but I got used to it eventually :)

This challenge was taken from Code Crafters

Using redis-gleam

  1. Install Gleam

  2. Install Redis (Used for client CLI)

  3. Run ./spawn_redis_server.sh or gleam run

  4. In another terminal run redis-cli and start playing with redis!!

Features

Right now, I've only implemented a subset of redis features

  • Resp 2.0 serialisation protocol
  • Echo
  • Ping
  • Get
  • Set
  • Set with expiry
  • Replication
  • RBD Persistence
  • Streams
  • Resp 3.0

About

Building a REDIS SERVER in a language without IF statments, LOOPS and MUTABILITY?? 😱

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published