cache.h: move remote/connect API out of it