nestrs-cache-manager 0.1.0

Rust port of @nestjs/cache-manager backed by moka.
Documentation
//! Port map for upstream `lib/cache.module-definition.ts`.

pub const MODULE_OPTIONS_TOKEN: &str = "CACHE_MODULE_OPTIONS";

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ConfigurableModuleClass {
    pub module_name: String,
    pub factory_method_name: String,
}

impl ConfigurableModuleClass {
    pub fn new() -> Self {
        Self {
            module_name: "Cache".to_string(),
            factory_method_name: "createCacheOptions".to_string(),
        }
    }
}

impl Default for ConfigurableModuleClass {
    fn default() -> Self {
        Self::new()
    }
}