The 4 layers of caching (Memoization, Data Cache, Full Route, Router Cache).
lru-cache.Library: Use cache-manager with cache-manager-redis-yet (Recommended over cache-manager-redis-store for better V4 support and stability).
Interceptors: Use @UseInterceptors(CacheInterceptor) for simple GET responses.
Decorators: Standardize custom cache keys.
@CacheKey('users_list')
@CacheTTL(300) // 5 minutes
findAll() { ... }
GET/SET.HSET): Storing objects (User profiles). Allows partial updates (HSET user:1 lastLogin result) without serialization overhead.SADD): Unique collections (e.g., "Online User IDs"). O(1) membership checks.ZADD): Priority queues, Leaderboards, or Rate Limiting windows.KEYS is O(N) - bans in PROD), use Sets to group keys.
SADD post:1:tags cache:post:1DEL usage keys.UserUpdated) to trigger invalidation asynchronously.swr libraries).npx skills add ngxtm/Next.js Caching Architecture下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer