🎉 Smithery is now a part of Arcade.dev! Read more in our announcement here
Multi-level caching, Invalidation patterns, and Stampede protection.
lru-cache
Library: Use cache-manager with cache-manager-redis-yet (Recommended over cache-manager-redis-store for better V4 support and stability).
cache-manager
cache-manager-redis-yet
cache-manager-redis-store
Interceptors: Use @UseInterceptors(CacheInterceptor) for simple GET responses.
@UseInterceptors(CacheInterceptor)
Decorators: Standardize custom cache keys.
@CacheKey('users_list') @CacheTTL(300) // 5 minutes findAll() { ... }
GET/SET
HSET
HSET user:1 lastLogin result
SADD
ZADD
KEYS
SADD post:1:tags cache:post:1
DEL
UserUpdated
swr