Skip to main content

Module stores_mongo

Module stores_mongo 

Source
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§

CachedMongoCollection
A typed MongoDB collection with bounded positive/negative record caching.
MongoCacheConfig
Settings for the in-process cache used by CachedMongoCollection.
MongoStore
A reusable MongoDB client and selected database.
MongoStoreConfig
MongoStoreMetrics
Cardinality-bounded MongoDB operation metrics used by MongoStore’s typed helpers.

Enums§

MongoStoreError