/redis-serverjs

📚Tiny Redis Server Implementation

Primary LanguageJavaScriptMIT LicenseMIT

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