We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91027cd commit 28ae4e1Copy full SHA for 28ae4e1
storage.js
@@ -8,7 +8,7 @@ function Storage(config) {
8
this.adapters = [];
9
}
10
11
-Storage.adapters = [ 'memory', 'mongodb', 'fs' ];
+Storage.adapters = [ 'none', 'memory', 'mongodb', 'fs' ];
12
13
Storage.isAdapterAvailable = function (adapter) {
14
return adapter && (Storage.adapters.indexOf(adapter.toLowerCase()) !== -1);
@@ -25,6 +25,8 @@ Storage.prototype.initAdapters = function (done) {
25
Storage.prototype.initAdapter = function (config, adapterName, done) {
26
if (!Storage.isAdapterAvailable(adapterName)) return done(new Error('Missing storage adapter'));
27
28
+ if (adapterName === 'none') return done();
29
+
30
var Adapter = require(format('./storage/%s.js', adapterName));
31
var adapter = new Adapter(config);
32
var self = this;
0 commit comments