Convert the ApiCache to a Spring bean