Thread-safe LRU Cache implemented in ruby