File tree Expand file tree Collapse file tree 3 files changed +13
-12
lines changed
packages/node-cache-manager-mongodb Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# @tirke/node-cache-manager-mongodb
22
3+ ## 1.8.0
4+
5+ ### Minor Changes
6+
7+ - Add possibility to pass a Mongo Client to the constructor ([ #694 ] ( https://github.com/Tirke/node-cache-manager-stores/pull/694 ) )
8+
39## 1.7.0
410
511### Minor Changes
1420 Default collection name will remain cache if unspecified.
1521
1622 ``` typescript
17- import { caching } from " cache-manager" ;
23+ import { caching } from ' cache-manager'
1824
19- import { mongoDbStore } from " ./node-cache-manager-mongodb" ;
25+ import { mongoDbStore } from ' ./node-cache-manager-mongodb'
2026
2127 const mongoCache = await caching (mongoDbStore , {
22- url: " mongodb://localhost:27017" ,
23- collectionName: " custom-collection-name" ,
24- mongoConfig: { auth: { password: " <password>" , username: " <user>" } },
25- });
28+ url: ' mongodb://localhost:27017' ,
29+ collectionName: ' custom-collection-name' ,
30+ mongoConfig: { auth: { password: ' <password>' , username: ' <user>' } },
31+ })
2632 ```
2733
2834## 1.5.0
Original file line number Diff line number Diff line change 11{
22 "name" : " @tirke/node-cache-manager-mongodb" ,
3- "version" : " 1.7 .0" ,
3+ "version" : " 1.8 .0" ,
44 "license" : " MIT" ,
55 "type" : " commonjs" ,
66 "repository" : " https://github.com/Tirke/node-cache-manager-stores" ,
You can’t perform that action at this time.
0 commit comments