·rust-cache
</>

rust-cache

huiali/rust-skills

Redis 缓存管理、连接池、TTL策略、模式匹配删除、性能优化

4Installs·0Trend·@huiali

Installation

$npx skills add https://github.com/huiali/rust-skills --skill rust-cache

SKILL.md

| 复杂查询 | 100ms | <5ms | 95%+ | | 频繁访问 | 50ms | <2ms | 96% |

| Cache-Aside | 读多写少 | 简单、可靠 | 缓存不一致风险 | | Write-Through | 数据一致性要求高 | 强一致性 | 写入延迟增加 | | Write-Behind | 高写入吞吐量 | 写入性能高 | 数据丢失风险 |

| 缓存命中率低 | TTL 设置不当 | 调整 TTL,区分热冷数据 | | Redis 连接超时 | 网络延迟或连接池耗尽 | 增加超时,扩大连接池 | | 缓存与数据库不一致 | 并发写入未加锁 | 使用分布式锁 | | 内存使用过高 | 缓存数据过大 | 启用压缩,设置容量上限 | | 批量删除阻塞 | 使用 DEL 而非 SCAN | 改用 SCAN 模式删除 |

Redis 缓存管理、连接池、TTL策略、模式匹配删除、性能优化 Source: huiali/rust-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/huiali/rust-skills --skill rust-cache
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is rust-cache?

Redis 缓存管理、连接池、TTL策略、模式匹配删除、性能优化 Source: huiali/rust-skills.

How do I install rust-cache?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/huiali/rust-skills --skill rust-cache Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/huiali/rust-skills