Deleted long time cache

This commit is contained in:
zeldaroot 2021-05-13 23:19:50 +03:00
parent 3a8a7b3e0f
commit 894f558e87
1 changed files with 0 additions and 9 deletions

View File

@ -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