We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parserCache
promise.js
1 parent 4ce2c70 commit 7f35cf5Copy full SHA for 7f35cf5
promise.js
@@ -2,6 +2,7 @@
2
3
const core = require('./index.js');
4
const EventEmitter = require('events').EventEmitter;
5
+const parserCache = require('./lib/parsers/parser_cache.js');
6
7
function makeDoneCb(resolve, reject, localErr) {
8
return function (err, rows, fields) {
@@ -573,3 +574,11 @@ exports.__defineGetter__('Charsets', () =>
573
574
exports.__defineGetter__('CharsetToEncoding', () =>
575
require('./lib/constants/charset_encodings.js')
576
);
577
+
578
+exports.setMaxParserCache = function(max) {
579
+ parserCache.setMaxCache(max);
580
+};
581
582
+exports.clearParserCache = function() {
583
+ parserCache.clearCache();
584
0 commit comments