updating the cache mediator to handle concurrent requests.