Building a simple cache mechanism in ruby | Hacker News Reader