Expand description
Rust port of @nestjs/cache-manager.
Source baseline: cache-manager-upstream package @nestjs/cache-manager
3.1.2. The upstream package wraps npm cache-manager, keyv, and
cacheable; this port uses moka for the runtime cache and keeps the Nest
module/provider/decorator/interceptor surface in Rust.
Re-exports§
pub use cache_constants::CACHE_KEY_METADATA;pub use cache_constants::CACHE_MANAGER;pub use cache_constants::CACHE_MODULE_OPTIONS;pub use cache_constants::CACHE_TTL_METADATA;pub use cache_module::Cache;pub use cache_module::CacheModule;pub use cache_module::DynamicModule;pub use cache_module::Provider;pub use cache_module::ProviderKind;pub use cache_module_definition::ConfigurableModuleClass;pub use cache_module_definition::MODULE_OPTIONS_TOKEN;pub use cache_providers::CacheManager;pub use cache_providers::CacheManagerError;pub use cache_providers::CacheValue;pub use cache_providers::Keyv;pub use cache_providers::KeyvStoreAdapter;pub use cache_providers::createCacheManager;pub use cache_providers::isCacheable;pub use decorators::CacheKey;pub use decorators::CacheKeyFactory;pub use decorators::CacheKeyFactory;pub use decorators::CacheTTL;pub use decorators::CacheTTLFactory;pub use decorators::CacheTTLFactory;pub use interceptors::CacheInterceptor;pub use interceptors::CallHandler;pub use interceptors::ExecutionContext;pub use interceptors::HttpAdapter;pub use interceptors::InterceptorResponse;pub use interceptors::Request;pub use interceptors::Response;pub use interfaces::CacheManagerOptions;pub use interfaces::CacheModuleAsyncOptions;pub use interfaces::CacheModuleOptions;pub use interfaces::CacheOptions;pub use interfaces::CacheOptionsFactory;
Modules§
- cache_
constants - Port map for upstream
lib/cache.constants.ts. - cache_
module - Port map for upstream
lib/cache.module.ts. - cache_
module_ definition - Port map for upstream
lib/cache.module-definition.ts. - cache_
providers - Port map for upstream
lib/cache.providers.ts. - decorators
- Port map for upstream
lib/decorators/index.ts. - interceptors
- Port map for upstream
lib/interceptors/index.ts. - interfaces
- Port map for upstream
lib/interfaces/index.ts.