cache_manager/
cache_module_definition.rs1pub const MODULE_OPTIONS_TOKEN: &str = "CACHE_MODULE_OPTIONS";
4
5#[derive(Debug, Clone, PartialEq, Eq)]
6pub struct ConfigurableModuleClass {
7 pub module_name: String,
8 pub factory_method_name: String,
9}
10
11impl ConfigurableModuleClass {
12 pub fn new() -> Self {
13 Self {
14 module_name: "Cache".to_string(),
15 factory_method_name: "createCacheOptions".to_string(),
16 }
17 }
18}
19
20impl Default for ConfigurableModuleClass {
21 fn default() -> Self {
22 Self::new()
23 }
24}