google-trends-api-client
Version:
An fully typed and easy to use client for the google trends api.
13 lines • 611 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTestRequestsCache = void 0;
// eslint-disable-next-line import/no-extraneous-dependencies
const simple_on_disk_cache_1 = require("simple-on-disk-cache");
const getTestRequestsCache = () => (0, simple_on_disk_cache_1.createCache)({
directoryToPersistTo: {
mounted: { path: `${__dirname}/__tmp__/requests` },
},
defaultSecondsUntilExpiration: 60 * 60 * 24 * 30, // cache for up to a month, for tests
});
exports.getTestRequestsCache = getTestRequestsCache;
//# sourceMappingURL=getTestRequestsCache.js.map