Skip to content

GabrielAlonsoCabral/rust-memory-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-memory-cache

Rust Memory Cache is a TCP simple single thread memory cache developed in Rust using RESP Protocol.

Developed by: @GabrielAlonsoCabral

Installation

# clone this repository
$ git clone https://github.com/GabrielAlonsoCabral/rust-memory-cache.git
$ cd rust-memory-cache

Start Server

$ cargo run

Build

$ cargo build --release

Usage

# Test connection
$ echo "+ping\r\n" | nc 127.0.0.1 6379

# Storing a value in memory
$ echo "+set user {id:1} 10\r\n" | nc 127.0.0.1 6379

# Getting a value in memory
$ echo "+get user\r\n" | nc 127.0.0.1 6379

About

Rust Memory Cache is a TCP simple single thread memory cache developed in Rust using RESP Protocol.

Topics

Resources

Stars

Watchers

Forks