Skip to content

coocos/miniaturedis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniaturedis

Tests

A miniature implementation of Redis.

Description

Miniaturedis implements a tiny Redis server based on the the RESP protocol specification, i.e. you can use redis-cli or any other Redis client implementation to connect to it and issue commands:

# Start miniaturedis in the background
$ ./miniaturedis &

# Start a Redis client
$ redis-cli
127.0.0.1:6379> GET some-key
(nil)
127.0.0.1:6379> SET some-key some-value
OK
127.0.0.1:6379> GET some-key
"some-value"

Features

As the name suggests, Miniaturedis currently only supports a tiny subset of Redis commands:

  • GET (with no options)
  • SET (with no options)

There is also no snapshot behaviour, i.e. nothing is persisted.

How to build

Assuming you have Go installed:

go build -o . ./...
./miniaturedis

About

Miniature Redis server

Topics

Resources

Stars

Watchers

Forks

Languages