Skip to content

@tirke/node-cache-manager-mongodb@1.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Jan 21:09
· 151 commits to main since this release
1a6b1da

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>" } },
    });