alpha release

update v0.8.0
This commit is contained in:
2026-03-17 22:49:38 -04:00
commit 63a91931da
157 changed files with 10951 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import Debug from 'debug';
const debug = Debug('twtkpr:memoryCache');
/**
*
* @param req
* @param res
* @param next
* @param cache
* @param reloadCache
* @returns
*/
export default async function memoryCache(req, res, next, cache, reloadCache) {
if (cache.keys().length && !['DELETE', 'POST', 'PUT'].includes(req.method)) {
next();
return;
}
reloadCache()
.then(() => {
next();
})
.catch((err) => {
console.error(err);
});
}
//# sourceMappingURL=memoryCache.js.map