alepha@docs:~/docs/packages/alepha/cache$
cat core.md1 min read
Last commit:
#Alepha - Cache
#Installation
Part of the alepha package. Import from alepha/cache.
npm install alepha
#Overview
Type-safe caching with TTL support.
Features:
- Cached computations with type-safe keys and values
- Configurable TTL
- Cache invalidation
- Automatic cache population
- Providers: Memory (default), Redis
#API Reference
#Primitives
$cache— Creates a cache primitive for caching with automatic management.
#Providers
CloudflareKVProvider— Cloudflare KV cache provider.MemoryCacheProvider— In-memory implementation of CacheProvider for testing.