github-actions
released this
30 Jan 21:09
·
318 commits
to main
since this release
Minor Changes
-
Can now specify a custom collection name. (
406c1424c37916131fa4dcf1cb355a0e3b5b360b
)
Default collection name will remain cache if unspecified.import { caching } from "cache-manager"; import { mongoDbStore } from "./node-cache-manager-mongodb"; const mongoCache = await caching(mongoDbStore, { url: "mongodb://localhost:27017", collectionName: "custom-collection-name", mongoConfig: { auth: { password: "<password>", username: "<user>" } }, });