Encore Redis Caching

•
25
•

Implements type-safe Redis caching and key-value storage in Encore.ts applications using structured keyspaces.

Encore Redis Caching is a specialized Claude Code skill designed to guide developers in implementing high-performance, type-safe caching using Redis within Encore.ts microservices. It provides robust patterns for declaring CacheClusters, defining typed keyspaces (including Strings, Ints, Lists, Sets, and JSON Structs), handling atomic operations, applying advanced TTL configurations, and managing error handling for cache misses and key collisions.

Características Principales

01Atomic increment and decrement operations ideal for counters and rate-limiting
02Type-safe keyspaces for Strings, Integers, Lists, Sets, and JSON Structs
03Flexible expiration helpers including expireIn, expireDailyAt, and keepTTL
0425 GitHub stars
05Safe write modes such as setIfNotExists and replace with automatic error handling
06Declarative CacheCluster setup with configurable Redis eviction policies

Casos de Uso

01Building real-time counters, rate limiters, and leaderboards
02Creating secure, temporary session token stores and user profiles
03Caching heavy database reads to minimize latency and database load