Tutorial: Set cache provider

Set cache provider

The mongodb-proxy has a dummy cache implementation in place, but you may load another on during configuration

    
    var dbproxy = require('mongodb-proxy')
    var db = dbproxy.create({...})
    
    // a memory based cache implementation (see here).
    var MemCache = require('mongodb-proxy-memcache')
            
    db.configure(function (config) {    
        config.cache(new MemCache())        
    })