---
name: "keydb-multithreaded-redis-fork"
description: "Scale Redis workloads across all CPU cores with KeyDB multi-threading and FLASH storage."
metadata:
  author: "Snapchat"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "setup keydb multithreading"
  - "configure keydb active-replication"
  - "enable keydb flash storage"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# KeyDB High-Concurrency In-Memory Engine

Runs KeyDB for multi-threaded key-value storage: active-replication multi-master topologies, MVCC sub-key expiration, FLASH storage tiering on NVMe SSDs, and handling extreme write loads.

## When to Invoke
Invoke this skill whenever you need to:
- setup keydb multithreading
- configure keydb active-replication
- enable keydb flash storage

## Execution SOP & Rules
1. Set server-threads 8 in keydb.conf to enable multi-threaded event loop processing.
2. Configure multi-master replication with active-replica yes and replicaof <other-ip> 6379 on both nodes.
3. Configure storage-provider flash /var/lib/keydb/flash to expand cache beyond physical RAM limits.
4. Benchmark multi-threaded concurrency using keydb-benchmark -t set,get -q -c 100 -P 16.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
