MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / ChangeStore

Class ChangeStore

atomic-repository/src/changestore/mod.rs:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113pub(crate) use cache::LruCache;
114
115pub struct ChangeStore {
116 /// Path to the changes directory (`.atomic/changes/`)
117 pub(crate) changes_dir: PathBuf,
118
119 /// LRU cache of recently accessed changes.
120 ///
121 /// We use `RwLock` for thread-safe interior mutability, allowing
122 /// concurrent read access while ensuring exclusive write access.
123 pub(crate) cache: RwLock<LruCache<Hash, Change>>,
124}
125
126impl std::fmt::Debug for ChangeStore {
127 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {

Callers 2

recordMethod · 0.50
assemble_and_hashMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected