Deleted long time cache
This commit is contained in:
parent
3a8a7b3e0f
commit
894f558e87
|
@ -6,7 +6,6 @@
|
|||
|
||||
var LRUCache = require('mnemonist/lru-cache');
|
||||
var cache = new LRUCache(10000);
|
||||
var lingTimeCache = new LRUCache(10000);
|
||||
|
||||
module.exports = {
|
||||
set: function(hash, data, callback) {
|
||||
|
@ -28,14 +27,6 @@ module.exports = {
|
|||
getSync: function(hash) {
|
||||
return !process.env['NO_CACHE'] ? cache.get(hash) : undefined;
|
||||
},
|
||||
setSyncLing: function(hash, data) {
|
||||
if (!process.env['NO_CACHE']) {
|
||||
lingTimeCache.set(hash, data);
|
||||
}
|
||||
},
|
||||
getSyncLong: function(hash) {
|
||||
return !process.env['NO_CACHE'] ? lingTimeCache.get(hash) : undefined;
|
||||
},
|
||||
flush: function(callback) {
|
||||
process.env.CP_VER = process.env.CP_VER
|
||||
? parseInt(process.env.CP_VER) + 1
|
||||
|
|
Loading…
Reference in New Issue