Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/apollo-server-core/dist/plugin/usageReporting/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.signatureCacheKey = exports.createSignatureCache = void 0;
const lru_cache_1 = __importDefault(require("lru-cache"));
function createSignatureCache({ logger, }) {
let lastSignatureCacheWarn;
let lastSignatureCacheDisposals = 0;
return new lru_cache_1.default({
length(obj) {
return Buffer.byteLength(JSON.stringify(obj), 'utf8');
},
max: Math.pow(2, 20) * 3,
dispose() {
lastSignatureCacheDisposals++;
if (!lastSignatureCacheWarn ||
new Date().getTime() - lastSignatureCacheWarn.getTime() > 60000) {
lastSignatureCacheWarn = new Date();
logger.warn([
'This server is processing a high number of unique operations. ',
`A total of ${lastSignatureCacheDisposals} records have been `,
'ejected from the ApolloServerPluginUsageReporting signature cache in the past ',
'interval. If you see this warning frequently, please open an ',
'issue on the Apollo Server repository.',
].join(''));
lastSignatureCacheDisposals = 0;
}
},
});
}
exports.createSignatureCache = createSignatureCache;
function signatureCacheKey(queryHash, operationName) {
return `${queryHash}${operationName && ':' + operationName}`;
}
exports.signatureCacheKey = signatureCacheKey;
//# sourceMappingURL=signatureCache.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0042 ]-- |