Refactor the requestcache to extend TaskManager