Function of mcache.window()

Looking at the go implementation, mcache.GetGossipIDs(topic) is equivalent to mcache.window(topic), which is described in the spec. My question is, what exactly is the window? Is it all messages currently in mcache? Or is it all messages currently in mcache that were published on a particular topic?

It’s the message IDs of the last few seconds for a particular topic.

Thanks- so does window depend on topic or no? I see topic as a parameter. Also, are the only messages stored in mcache the messages stored for the last few seconds?

It tracks for all topics we are subscribed. And yes, the messages are only stored for the last few seconds.