@xtandard/kit/storage/mongodb
@xtandard/kit/storage/mongodb — MongoDB storage: one { _id: key, value } collection over the
mongodb driver, with single-update compare-and-swap that also swaps documents written before
canonicalisation.
Optional peer: mongodb (loaded on first use).
import { … } from "@xtandard/kit/storage/mongodb";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createMongoStorage |
Create a MongoDB-backed MongoKvStorage. Connection is lazy and shared. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
MongoKvStorage |
A compare-and-swap capable storage backed by MongoDB, plus close(). |
MongoStorageOptions |
Options for createMongoStorage. |