Skip to content

An in-memory key value store implemented in Typescript

Notifications You must be signed in to change notification settings

0xturner/type-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeCache

Node.js TypeScript

Work in Progress

🚧 This project is experimental and not stable. Feel free to explore and experiment, but please be aware of potential issues and changes. Contributions and feedback are welcome!

Overview

A simple in-memory key-value store server, implemented in TypeScript and Node.js. Designed for lightweight storage and speedy retrieval with zero external dependencies. It uses a subset of the RESP (Redis Serialization Protocol) wire protocol for communication and supports passive key expiry.

Usage

To start the in-memory database server, use the following command:

pnpm start

This will start the server on the default port (6379). You can now connect to the database using a client that supports the RESP protocol, such as redis-cli.

RESP Protocol

The RESP (REdis Serialization Protocol) is a simple, binary-safe protocol used by Redis for client-server communication. This database server implements the RESP protocol, allowing you to interact with it using standard Redis clients.

For more information on the RESP protocol, refer to the official documentation.

Future plans

  • Persistance and auto recovery
  • Active key expiry
  • More data types

About

An in-memory key value store implemented in Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published