AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Public Redis Expert Base

skill-seed-forge-harness-ai-kit-public-redis-expert-base · by seed-forge

Redis 知识基座。覆盖数据结构选型、Key 命名、连接池与 Pipeline、集群与副本读取、TTL 与淘汰策略。供 devlab-redis-usage 通过 extends 继承。

No reviews yet
0 installs
31 views
0.0% view→install

Install

$ agentstack add skill-seed-forge-harness-ai-kit-public-redis-expert-base

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-seed-forge-harness-ai-kit-public-redis-expert-base)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Public Redis Expert Base? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Redis Knowledge Base

Foundational guidance for modeling data in Redis and connecting to it efficiently.

> Source: Adapted from redis/agent-skills (redis-core + redis-connections + redis-clustering). Official Redis team content.

Workflow

  1. Identify the access pattern (read/write mix, data shape, latency target).
  2. Choose the matching data structure (Section 1).
  3. Design key names following conventions (Section 2).
  4. Configure connection pool and timeouts (Section 3).
  5. Batch work with pipelining (Section 4).
  6. Plan for cluster mode if scaling (Section 5).

Data Structure Selection

Pick the type that matches the access pattern, not just the shape of the data.

| Use case | Recommended type | Why | |---|---|---| | Simple values, counters | String | Atomic INCR/DECR, SET/GET | | Object with independently updated fields | Hash | Per-field reads/writes, no whole-object rewrite | | Queue, recent-N items | List | O(1) push/pop at ends | | Unique items, membership checks | Set | O(1) SADD/SISMEMBER/SCARD | | Rankings, score-based ranges | Sorted Set | Score-ordered; ZADD/ZRANGE/ZRANK | | Nested / hierarchical data | JSON | Path-level updates, nested arrays, RQE indexing | | Event log, fan-out messaging | Stream | Persistent, consumer groups | | Vector similarity | Vector Set | Native vector storage with HNSW |

Common anti-pattern: stuffing a flat object into a serialized string. Use a Hash instead.

References:

  • [choose-data-structure](references/REFERENCE-CHOOSE-DATA-STRUCTURE.md)

Key Naming

Use colon-separated segments with a stable hierarchy:

{entity}:{id}:{attribute}
user:1001:profile
session:abc123
article:987:likes

Rules:

  • Lowercase, colon-separated. No spaces, no mixed casing.
  • Keep keys short but readable.
  • Don't use full URLs or long strings as keys.
  • Prefix for multi-tenancy (tenant:42:user:7:cart).

References:

  • [key-naming](references/REFERENCE-KEY-NAMING.md)

Connection Management

Always use pooling or multiplexing — never one connection per request.

| Style | Used by | Note | |---|---|---| | Pool | redis-py, Jedis, go-redis | Each lease blocks if pool exhausted | | Multiplex | Lettuce, NRedisStack | Single connection; cannot carry blocking commands |

Set explicit timeouts: connect timeout shorter than read/write timeout.

References:

  • [pooling](references/REFERENCE-POOLING.md)
  • [timeouts](references/REFERENCE-TIMEOUTS.md)

Pipelining & Batching

For N commands that don't depend on each other's results, send as a single batch.

pipe = redis.pipeline()
for user_id in user_ids:
    pipe.get(f"user:{user_id}")
results = pipe.execute()

Avoid commands that scan everything: use SCAN instead of KEYS, SSCAN instead of SMEMBERS on large sets.

References:

  • [pipelining](references/REFERENCE-PIPELINING.md)
  • [blocking-commands](references/REFERENCE-BLOCKING-COMMANDS.md)

Clustering & Replication

In Redis Cluster, keys are distributed across 16,384 slots. Multi-key operations require all keys on the same slot — use hash tags: {user:1001}:profile.

For read-heavy workloads, route reads to replicas (eventually consistent).

References:

  • [hash-tags](references/REFERENCE-HASH-TAGS.md)
  • [read-replicas](references/REFERENCE-READ-REPLICAS.md)

TTL & Eviction

  • Always set TTL for cache keys; never rely on manual cleanup.
  • Use EXPIRE / PEXPIRE for time-based eviction.
  • Choose eviction policy based on workload: allkeys-lru for cache, volatile-lru for mixed.
  • Monitor evicted_keys in INFO stats to detect memory pressure.

Guardrails

  • Never use KEYS * in production — use SCAN.
  • Never HGETALL or SMEMBERS on large containers — use HSCAN/SSCAN.
  • Prefer Hash over serialized String for objects with multiple fields.
  • Set TTL on all cache keys; avoid manual cleanup patterns.

参考文档:

  • references/REFERENCE-README.md

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.