redis-patterns
Redisデータ構造パターン、キャッシング戦略、分散ロック、レート制限、Pub/Sub、本番アプリケーション用コネクション管理。
Original · translation is not supported for this source languageTarget: Databases. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original Japanese text
Topics in the source
- Redis Patterns
- How It Works
- When to Activate
- Data Structure Cheat Sheet
- Core Patterns
- Cache-Aside (Lazy Loading)
- Write-Through Cache
- Cache Invalidation
一般的なバックエンド使用例に対するRedisベストプラクティスの参考資料。 Redisはメモリ内データ構造ストアで、文字列、ハッシュ、リスト、セット、ソート済みセット、ストリームなどをサポートします。単一インスタンスでは個々のRedisコマンドは原子的ですが、マルチステップワークフローはLuaスクリプト、MULTI/EXECトランザクション、または明示的な同期化が必要です。RDBスナップショットまたはAOFログを通じてデータをオプションで永続化します。クライアントはRESPプロトコルを使用してTCP経由で通信します。接続プール不可欠でリクエストごとのハンドシェイクオーバーヘッドを回避します。 アプリケーションにキャッシング追加 レート制限またはスロットリング実装 分散ロックまたはコーディネーション構築 セッションまたはトークンストレージ設定 Pub/SubまたはRedis Streams for messaging使用 本番環境でRedis設定(プール、削除、クラスタリング) | Use Case | Structure | Example Key | |----------|-----------|-------------| | Simple cache | String | product:123 | | User session | Hash | session:abc | | Leaderboard | Sorted Set | scores:weekly | | Unique visitors | Set | visitors:2024-01-01 | | Activity feed | List | feed:user:456 | | Event stream | Stream | events:orders | | Counters / rate limits | String (INCR) | ratelimit:user:123 | | Bloom filter / HLL | HyperLogLog | hll:pageviews | マルチノード設定の場合、フルRedlockアルゴリズムを実装する redlock-py ライブラリを使用してください。 配信保証、コンシューマーグループ、または再生が必要な場合、Pub/Sub代わりにStreamsを優先してください。 | Data Type | Suggested TTL | |-----------|--------------| | User session | 24h (86400) | | API response cache | 5–15 min | | Rate limit window | Match window size | | Short-lived tokens |
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- docs/ja-JP/skills/redis-patterns/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:49.612Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.