@xtandard/links/storage/mongodb
MongoDB storage: createMongoStorage() over the mongodb driver, one
collection of { _id: key, value } documents, with compare-and-swap.
import { … } from "@xtandard/links/storage/mongodb";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createMongoStorage |
Create a MongoDB-backed MongoLinksStorage. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
MongoLinksStorage |
A CompareAndSwapLinksStorage backed by MongoDB, plus a close() method that disconnects the client — but only the one this adapter created. A client you passed in is left for you to manage. |
MongoStorageOptions |
Options for createMongoStorage. dbName defaults to "xtandard_links", collectionName to "links_kv". |