MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / init_disk_and_memory

Method init_disk_and_memory

graphlite/src/storage/storage_manager.rs:136–149  ·  view source on GitHub ↗

Initialize storage manager with both disk and memory storage

(
        path: P,
        storage_type: StorageType,
    )

Source from the content-addressed store, hash-verified

134
135 /// Initialize storage manager with both disk and memory storage
136 fn init_disk_and_memory<P: AsRef<Path>>(
137 path: P,
138 storage_type: StorageType,
139 ) -> Result<Self, Box<dyn std::error::Error>> {
140 info!(
141 "Initializing disk and memory storage with {} at path: {:?}",
142 storage_type,
143 path.as_ref()
144 );
145
146 // TODO: Implement both disk and memory storage initialization
147 // For now, fall back to disk-only
148 Self::init_disk_only(path, storage_type)
149 }
150
151 /// Get a graph by name
152 /// Checks cache first, then memory store, then persistent storage

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected