feat(cache): Add a JS interface to CacheRegister