Skip to content

SwarnimWalavalkar/lilredis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A very naive Redis clone

A simple in-memory key-value datastore written in Rust,

Building

cargo build -r --target-dir ./build
cd build/release

Usage

./lilredis FILE get KEY
./lilredis FILE delete KEY
./lilredis FILE insert KEY VALUE
./lilredis FILE update KEY VALUE

Usage Examples

Inserting (test.db will be created if it doesnt already exist)

$ ./lilredis test.db insert hello world
$ ./lilredis test.db insert balance 4204
"4222"

Fetching a value with a key

$ ./lilredis test.db get hello
"world"

Updating a value with a key

$ ./lilredis test.db update balance 4242
"4242"

Deleting a value with a key

$ ./lilredis test.db delete hello
"world"

About

A very naive redis clone, written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages