Expand description
MongoDB collections, transactions, instrumentation, and cache-aside records.
use rust_zero_core::{MongoStore, MongoStoreConfig};
let store = MongoStore::connect(MongoStoreConfig::new(
"mongodb://127.0.0.1:27017", "service",
)).await?;
store.health_check().await?;Structs§
- Cached
Mongo Collection - A typed MongoDB collection with bounded positive/negative record caching.
- Mongo
Cache Config - Settings for the in-process cache used by
CachedMongoCollection. - Mongo
Store - A reusable MongoDB client and selected database.
- Mongo
Store Config - Mongo
Store Metrics - Cardinality-bounded MongoDB operation metrics used by
MongoStore’s typed helpers.