Skip to content

GreXLin85/redis-serverjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis Server JS

This is a tiny Redis Server with simple commands written in JavaScript. It is based on the Redis Protocol Specification.

Installation

git clone https://github.com/GreXLin85/redis-serverjs.git
cd redis-serverjs

Usage

npm start

Commands Implemented

  • PING
  • SET
  • GET
  • DEL
  • FLUSHDB - This command is not support ASYNC/SYNC option in our implementation.
  • DBSIZE
  • SET_MAX_LRU_SIZE - This is a custom command to set the maximum size of the LRU cache. The default value is 100. This command is used to test the LRU cache. Usage: SET_MAX_LRU_SIZE size

References