alaska-cache-mongo

0.13.2 • Public • Published

alaska-cache-mongo

Alaska MongoDB cache driver

configure

 
export default {
  cache: {
    type: 'alaska-cache-mongo',
    // The connection URI string
    url: 'mongodb://localhost/mydb',
    // The cache collection
    collection: 'caches',
    // Default maximum age in milliseconds, 0 for forever
    maxAge: 3600 * 1000,
    //more http://mongodb.github.io/node-mongodb-native/2.2/reference/connecting/connection-settings/
    connectTimeoutMS: 10000
  }
}
 

Contribute

Maichong Software

Liang Xingchen

License

This project is licensed under the terms of the MIT license

Readme

Keywords

Package Sidebar

Install

npm i alaska-cache-mongo

Weekly Downloads

1

Version

0.13.2

License

MIT

Unpacked Size

7.24 kB

Total Files

3

Last publish

Collaborators

  • liangxingchen