Tirraa / dashboard_rtm

dashboard_rtm
MIT License
5 stars 1 forks source link

[Perf][In-Memory Cache] Cache clean up #150

Open gustaveWPM opened 2 months ago

gustaveWPM commented 2 months ago

Currently, the In-Memory cache NEVER cleans anything, except when we call a get And even in this case, it only invalidates what is tried to be got.

This is a smell which could be fixed easily with a damn stupid interval or asynchronous task which spies and cleans the cache.

gustaveWPM commented 2 months ago

Maybe this: https://www.npmjs.com/package/p-timeout