Skip to content

bihanviranga/redis-from-scratch

Repository files navigation

Redis From Scratch

Implementing redis from scratch to complete the challenge on codecrafters.io.

More features on the way.

Currenly implementing: master-replica propagation

Running

./your_program.sh

Usage

# Start the server
$ ./your_program.sh

# Using another terminal, query the server.
# You can use netcat, but you will have to encode the inputs using the redis protocol.
# Recommend using the official redis-cli client.
$ redis-cli set foo bar
# -> OK
$ redis-cli get foo
# -> "bar"
#
# Expiry time using PX
$ redis-cli set hello world PX 5000
$ redis-cli get hello
# -> "world"
# After 5 seconds (5000 milliseconds) this key is expired
$ redis-cli get hello
# -> (nil)

About

Creating Redis from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published