Skip to main content

load_default_memory_config

Function load_default_memory_config 

Source
pub fn load_default_memory_config() -> MemoryConfig
Expand description

Load the default memory configuration using unified config resolution.

Resolution order:

  1. ENACT_MEMORY_CONFIG_PATH environment variable
  2. ./memory.yaml in current working directory
  3. ~/.enact/memory.yaml
  4. Hardcoded defaults

ยงExample

use enact_memory::config::load_default_memory_config;

let config = load_default_memory_config();
println!("Backend: {}", config.backend);