Alepha Cache
A generic key-value caching interface with in-memory implementation.
Installation
This package is part of the Alepha framework and can be installed via the all-in-one package:
npm install alepha
Alternatively, you can install it individually:
npm install @alepha/core @alepha/cache
Module
Provides high-performance caching capabilities for Alepha applications with configurable TTL and multiple storage backends.
The cache module enables declarative caching through the $cache
descriptor, allowing you to cache method results,
API responses, or computed values with automatic invalidation and type safety. It supports both in-memory and
persistent storage backends for different performance and durability requirements.
API Reference
Descriptors
$cache()
Creates a cache storage or a cache function.
Table of contents