mirror of
https://github.com/Shineii86/MiruroAPI.git
synced 2026-10-22 18:25:11 +00:00
v2.0.0: Major upgrade — 35 endpoints, compression, streaming improvements, new features
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user