LRU Cache implementation in PHP