object-store: migrate alternates struct and functions from cache.h