Agent skill · software engineering · aiskillstore

delon-cache-caching-strategies

Implement caching strategies using @delon/cache. Use this skill when adding memory cache, LocalStorage cache, SessionStorage cache, or cache interceptors for HTTP requests. Supports TTL-based expiration, cache invalidation, cache grouping, and persistent storage. Optimizes performance by reducing redundant API calls and database queries.

Why this skill is useful

Adds specific caching strategies and implementation details for the @delon/cache library that the AI wouldn't reliably generate on its own.

What it needs

Requires @delon/cache installed locally. About 6k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

@delon/cache Caching Strategies Skill This skill helps implement caching using @delon/cache library. Core Principles Cache Types Memory Cache: Fast, in-memory caching (lost on page refresh) LocalStorage Cache: Persistent across sessions SessionStorage Cache: Persistent within session only Features TTL-based expiration Cache invalidation (manual and automatic) Cache grouping and namespacing HTTP request caching with interceptors Observable support for async data Configuration Cache Service Memory Cache (Default) LocalStorage Cache (Persistent) SessionStorage Cache Lazy Loading with getOrSet Cache Invalidation Manual Invalidation Group Cache Invalidation HTTP Cache Interceptor Register Interceptor Cache Namespacing Cache Patterns Read-Through Cache Write-Through Cache Cache-Aside Pattern Best Practices Cache Key Naming TTL Guidelines Checklist When implementing caching: [ ] Choose appropriate cache type (memory/localStorage/sessionStorage) [ ] Set reasonable TTL values [ ] Implement cache invalidation on data changes [ ] Use descriptive, hierarchical cache keys [ ] Handle cache misses gracefully [ ] Monitor cache hit/miss rates [ ] Consider cache size limits [ ] Test cache expiration [ ] Document caching strategy [ ] Implement cache warming for critical data References @delon/cache Documentation Caching Best Practices Cache Patterns

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/delon-cache-caching-strategies

View the source on GitHub

Browse the @skills marketplace