Time Limited Cache Challenge in JavaScript

30 Days JavaScript Challenge : Day 17 ✅ Today’s problem was about designing a Time Limited Cache. The idea was to store key-value pairs, but with a twist each key should expire after a certain time. The class needed to support: • setting values with an expiry • retrieving values only if they’re still valid • counting how many keys are currently active This felt closer to a real-world problem, especially how caching systems work with expiration. It was interesting to think about how to manage time, state, and updates together in a clean way. 17 days in learning not just syntax, but how to think through problems. 💻🚀 #javascript #leetcode #webdevelopment #frontenddeveloper #codingchallenge #learninginpublic #developers #programming #buildinpublic

  • graphical user interface, text

To view or add a comment, sign in

Explore content categories