commit
e2782016ae
@ -14,7 +14,7 @@ var BlockDb = imports.BlockDb || require('../../lib/BlockDb').default();
|
|||||||
var config = require('../../config/config');
|
var config = require('../../config/config');
|
||||||
var CONCURRENCY = 5;
|
var CONCURRENCY = 5;
|
||||||
var DAYS_TO_DEAD = 40;
|
var DAYS_TO_DEAD = 40;
|
||||||
var MAX_CACHE_KEYS = 10000;
|
var MAX_CACHE_KEYS = 50000;
|
||||||
|
|
||||||
var deadCache = {};
|
var deadCache = {};
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ Address.prototype.setCache = function() {
|
|||||||
delete deadCache[prop];
|
delete deadCache[prop];
|
||||||
|
|
||||||
size = _.keys(deadCache).length;
|
size = _.keys(deadCache).length;
|
||||||
console.log('%%%%%%%% cache size:', size); //TODO
|
console.log('%%%%%%%% cache size after delete:', size); //TODO
|
||||||
}
|
}
|
||||||
// TODO expire it...
|
// TODO expire it...
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user