v2.0.0: Major upgrade — 35 endpoints, compression, streaming improvements, new features

This commit is contained in:
Sʜɪɴᴇɪ Nᴏᴜᴢᴇɴ
2026-06-25 01:09:35 +05:30
parent 9ada6e1016
commit 3675bbba77
8 changed files with 2774 additions and 85 deletions
+9 -1
View File
@@ -129,6 +129,14 @@ const clearCache = () => {
cache.clear();
};
module.exports = { getCached, setCache, clearCache };
// ---- FEATURE: Get current cache size ----
/**
* Returns the current number of entries in the cache.
*
* @returns {number} Current cache size
*/
const getCacheSize = () => cache.size;
module.exports = { getCached, setCache, clearCache, getCacheSize };
// ══════════════════════════════════════════════════════════════ END: cache.js