nestrs-cache-manager 0.1.0

Rust port of @nestjs/cache-manager backed by moka.
Documentation
//! 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.

#![allow(non_snake_case, non_camel_case_types)]

pub mod cache_constants;
pub mod cache_module;
pub mod cache_module_definition;
pub mod cache_providers;
pub mod decorators;
pub mod interceptors;
pub mod interfaces;

pub use cache_constants::{
    CACHE_KEY_METADATA, CACHE_MANAGER, CACHE_MODULE_OPTIONS, CACHE_TTL_METADATA,
};
pub use cache_module::{Cache, CacheModule, DynamicModule, Provider, ProviderKind};
pub use cache_module_definition::{ConfigurableModuleClass, MODULE_OPTIONS_TOKEN};
pub use cache_providers::{
    CacheManager, CacheManagerError, CacheValue, Keyv, KeyvStoreAdapter, createCacheManager,
    isCacheable,
};
pub use decorators::{CacheKey, CacheKeyFactory, CacheTTL, CacheTTLFactory};
pub use interceptors::{
    CacheInterceptor, CallHandler, ExecutionContext, HttpAdapter, InterceptorResponse, Request,
    Response,
};
pub use interfaces::{
    CacheManagerOptions, CacheModuleAsyncOptions, CacheModuleOptions, CacheOptions,
    CacheOptionsFactory,
};