---
title: "Deploy crabdis"
description: "It's like Redis but a bit rusty..."
category: "Storage"
url: https://railway.com/deploy/CxB19j
---

# Deploy crabdis

It's like Redis but a bit rusty...

**[Deploy crabdis on Railway](https://railway.com/template/CxB19j)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/CxB19j/manifest.json

- **Creator:** pxseu
- **Category:** Storage

## Template content

### crabdis https://cdn.pxseu.com/crabdis.png?v=1

- **Image:** pxseu/crabdis
- **Start command:** `/bin/sh -c "/usr/local/bin/crabdis --address :: --save \"60 1\" --requirepass $REDISPASSWORD --dir $RAILWAY_VOLUME_MOUNT_PATH"`

## Documentation

# crabdis

> It's like Redis but a bit rusty...

# What?

This is a simple in-memory key-value store written in Rust. It's somewhat compatible with Redis via the [RESP](https://redis.io/docs/reference/protocol-spec/) protocol, but it's not a drop-in replacement. A lot of commands are missing and stuff might not work as expected.

Please don't use this in production. Or do, I'm not your mom. But don't blame me if it eats your data.

# Why?

I wanted to write Redis but multi-threaded and in Rust. This is the result.
Works? Kinda. Is it good? Maybe. Is it fast? Yes.

# Installation

You can find binaries on the [releases page](https://github.com/pxseu/crabdis/releases). Or you can build it yourself with `cargo build --release`.

If you want to install it with cargo, you can do so with `cargo install crabdis`.

There is also a Docker image available on [Docker Hub](https://hub.docker.com/r/pxseu/crabdis).

# Usage

```sh
crabdis
```

# TODO / Missing Features

- [x] Basic RESP protocol implementation
- [x] GET, SET, DEL, EXISTS, KEYS, FLUSHDB
- [ ] COMMAND / COMMAND DOCS (so ioredis works)
- [ ] SET arguments (EX, PX, NX, XX) + SETEX, PSETEX
- [ ] Persistence
- [ ] Hash Command family

This will start the server on `127.0.0.1:6379`. You can change the address and port with the `--address` and `--port` flags.

# License

This project is licensed under the [MIT License](https://github.com/pxseu/crabdis/blob/senpai/LICENSE).

## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.

Open this page in a browser: https://railway.com/deploy/CxB19j
