Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/otaaaviio/redis-typescript

Redis implementation with typescript
https://github.com/otaaaviio/redis-typescript

Last synced: 21 days ago
JSON representation

Redis implementation with typescript

Awesome Lists containing this project

README

        

# Redis with TypeScript

This is a redis implementation in TypeScript to [CodeCrafters Challenge](https://app.codecrafters.io/courses/redis).

## Summary
- [System Requirements](#system-requirements)
- [Running the server](#running-the-server)
- [Running commands](#running-commands)
- [Current Commands](#current-commands)
- [Author](#author)

## System Requirements
- [node](https://nodejs.org/en/download/package-manager)
- [bun](https://bun.sh/docs/installation)
- [redis-cli](https://redis.io/docs/latest/operate/rs/references/cli-utilities/redis-cli/) (optional)

## Running the server
```bash
./spawn_redis_server.sh --port --replicaof " "
```

obs: args are optional

## Running commands
```
redis-cli <...args>
```

## Current Commands

| Command | Arguments | Description |
|---------|---------------|-------------------------------------------------|
| ping | - | Responds with "PONG" to check connectivity. |
| echo | message | Echoes the provided message back to the client. |
| set | key
value | Set the string value of a key |
| get | key | Get a string from a key |
| info | server | Get info about the current server |

## Author
- Otávio Gonçalves - [email protected]