Help on redirect user on gated content

I tried with

let topicId = router.currentRoute.parent.params.id
PreloadStore.remove(`topic/${topicId}`);

but it doesn’t work, do we have a document about how the PreloadStore.remove method works?