Fix add-cache to use new interface