v0.3 — written in Rust

The ultra-lightweight, multithreaded Redis alternative.

swcache is built from the ground up in Rust for maximum memory safety and blazing-fast performance — no garbage collector, no single-thread ceiling.

~/swcache
$

Why swcache

Engineered for the modern backend

Three core pillars set swcache apart from traditional in-memory caches.

Made in Rust

Memory safety without a garbage collector. Predictable, GC-free latencies and zero data races, guaranteed at compile time.

True Multithreading

Unlike Redis's single-threaded core, swcache scales efficiently across every CPU core to maximize throughput under load.

Ultra-Lightweight

A minimal memory footprint and tiny resource usage make swcache ideal for cloud-native, containerized, and edge environments.

Benchmarks

Redis vs swcache

Measured on an 8-core instance with a 50/50 GET/SET workload. swcache handles more throughput while consuming a fraction of the memory.

Throughput

operations / second — higher is better
swcache1.85M ops/s
Redis720K ops/s

Memory footprint

resident memory — lower is better
swcache38 MB
Redis126 MB

2.5×

higher throughput

70%

less memory used

8

cores fully utilized

Drop swcache into your stack today

Wire-compatible, multithreaded, and lightweight. Get up and running in a single command.

$cargo install swcache