Skip to content
Skills Library
Data & analytics · Building & coding

role-database:key-value-stores

/role-database:key-value-stores

Deep operational guide for 15 key-value stores. Redis/Valkey (cluster, Sentinel, Streams, Lua, Stack modules), DynamoDB (single-table design, GSI/LSI, DAX, Global Tables), Memcached, etcd (Raft, K8s), FoundationDB, KeyDB, Dragonfly, Ignite, Hazelcast, Aerospike, Garnet. Use when configuring, tuning, or operating key-value databases in production.

Licence
MIT
Last repository change
24.07.2026

Assessment and security

80/ 100Class: good
Format15 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Deep operational guide for 15 key-value stores. Redis/Valkey (cluster, Sentinel, Streams, Lua, Stack modules), DynamoDB (single-table design, GSI/LSI, DAX, Global Tables), Memcached, etcd (Raft, K8s), FoundationDB, KeyDB, Dragonfly, Ignite, Hazelcast, Aerospike, Garnet. Use when configuring, tuning, or operating key-value databases in production.

Original author description

Deep operational guide for 15 key-value stores. Redis/Valkey (cluster, Sentinel, Streams, Lua, Stack modules), DynamoDB (single-table design, GSI/LSI, DAX, Global Tables), Memcached, etcd (Raft, K8s), FoundationDB, KeyDB, Dragonfly, Ignite, Hazelcast, Aerospike, Garnet. Use when configuring, tuning, or operating key-value databases in production.

How it works

  1. Selection Framework
  2. Comparison Table
  3. Reference Files
  4. Caching Patterns
  5. Anti-Patterns
Original SKILL.md headings · 49 lines, 407 words
SKILL.md preview
---
name: role-database:key-value-stores
description: |
  Deep operational guide for 15 key-value stores. Redis/Valkey (cluster, Sentinel, Streams, Lua, Stack modules), DynamoDB (single-table design, GSI/LSI, DAX, Global Tables), Memcached, etcd (Raft, K8s), FoundationDB, KeyDB, Dragonfly, Ignite, Hazelcast, Aerospike, Garnet. Use when configuring, tuning, or operating key-value databases in production.
allowed-tools: Read, Grep, Glob, Bash
---

You are a key-value store specialist providing production-level guidance across 15 key-value database technologies.

## Selection Framework

1. **Access pattern**: simple GET/SET, range scans, sorted access, pub/sub, streaming
2. **Durability**: pure cache (ephemeral) vs persistent vs hybrid
3. **Consistency**: strong (etcd, FoundationDB) vs eventual (DynamoDB) vs configurable
4. **Latency**: sub-ms (Redis, Memcached, Dragonfly) vs single-digit ms (DynamoDB)
5. **Threading**: single (Redis) vs multi (KeyDB, Dragonfly, Memcached, Garnet)

## Comparison Table

| Database | Threading | Persistence | Protocol | Best For |
|---|---|---|---|---|
| Redis/Valkey | Single + IO threads | RDB + AOF | RESP | Caching, sessions, pub/sub, streams |
| DynamoDB | Managed | Durable | HTTP/JSON | Serverless, single-table design |
| Memcached | Multi-threaded | None | ASCII/Binary | Simple caching, multi-threaded GET |
| etcd | Multi-threaded | WAL + snapshots | gRPC | Config store, service discovery, K8s |
| FoundationDB | Multi-threaded | Durable (SSD) | FDB client | Multi-model foundation, ACID KV |
| KeyDB | Multi-threaded | RDB + AOF | RESP | Redis replacement, higher throughput |
| Dragonfly | Multi-threaded | Snapshots | RESP + Memcached | Redis replacement, lower RAM |
| Aerospike | Multi-threaded | Hybrid DRAM+SSD | Binary | Ad-tech, fraud detection |
| Garnet | Multi-threaded | Checkpoints | RESP | .NET ecosystem, high-perf Redis alt |

## Reference Files

Load the relevant reference for the task at hand:

- **Redis cluster, Sentinel HA, core data structures**: [references/redis-cluster-sentinel.md](references/redis-cluster-sentinel.md)
- **Redis Streams, Lua scripting, Redis Stack (RediSearch, RedisJSON, RedisTimeSeries, RedisBloom)**: [references/redis-streams-scripting-stack.md](references/redis-streams-scripting-stack.md)
- **Redis persistence (RDB/AOF), configuration tuning, eviction, ACL, TLS, latency diagnostics**: [references/redis-persistence-config-security.md](references/redis-persistence-config-security.md)

## Caching Patterns

- **Cache-Aside (Lazy Loading):** check cache → miss → read DB → store with TTL
- **Write-Through:** write to cache → cache synchronously writes to DB
- **Write-Behind (Write-Back):** write to cache → async batch write to DB (higher throughput, loss risk)
- **Distributed Lock (Redlock):** acquire on N/2+1 instances with same key/value/TTL; use fencing tokens

## Anti-Patterns

1. **Hot keys** — single key with disproportionate traffic; add client-side cache or key sharding
2. **Large values** — values >100 KB cause latency spikes; compress or split
3. **KEYS in production** — blocks server; use SCAN instead
4. **Missing TTLs** — memory grows unbounded; always set TTLs on cache entries
5. **Thundering herd** — mass cache expiration; jitter TTLs, probabilistic early expiration
6. **Cache penetration** — repeated queries for non-existent keys; cache null results or bloom filter
Files in this package (4)
  • SKILL.md 3 KB
  • references/redis-cluster-sentinel.md 3 KB
  • references/redis-persistence-config-security.md 3 KB
  • references/redis-streams-scripting-stack.md 4 KB

Versions

The database has no other skills named role-database:key-value-stores.

Database snapshot: 13.11.2026 · package version edec87e1bf7b (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100aws-dynamodb
    Amazon DynamoDB is a fully managed NoSQL key-value and document database with single-digit millisecond reads and writes. Use this skill to design tables with partition and sort keys, add global and local secondary indexes, write and query items with the AWS CLI and boto3, use…
  • 90aws-dynamodb-data-modeling-performance-review
    Review Amazon DynamoDB data modeling and performance across access patterns, partition keys, sort keys, secondary indexes, GSI/LSI design, hot partitions, query versus scan behavior, capacity mode, adaptive capacity, global tables, TTL, DAX, item size, transactions, and cost.…
  • 100dynamodb
    Expert AWS DynamoDB assistance covering single-table design, Partition and Sort keys, GSIs, DynamoDB Streams, and TTL. Use when designing serverless NoSQL applications, high-scale key-value stores, or event-driven pipelines.
  • 91dynamodb-design
    Generates DynamoDB table designs optimized for access patterns. Use when designing a data model for a new service. Produces partition key recommendations, GSI strategies, capacity planning, and CDK/CloudFormation implementation code.
  • 95data-nosql-database
    Use this skill when asked about MongoDB, Cassandra, DynamoDB, Couchbase, CosmosDB, NoSQL, document database, wide-column, key-value, consistency model, CAP theorem, sharding, or denormalization. This skill enforces: NoSQL type selection (document, key-value, wide-column, graph),…
  • 100memcached
    Expert Memcached in-memory key-value caching assistance covering slab allocation, multithreaded caching, and binary protocol. Use when caching database queries, session stores, or offloading read traffic.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.