How does query caching work?

I just have a simple question about caching in Broker nodes. We have enabled caching on broker nodes since our cluster is fairly small.

Does it cache by the intervals?

For example, I have a service where it would hit Druid multiple times with intervals like this

query1: [“2017-11-04T00:00:00/2017-11-05T01:01:20”]
query2: [“2017-11-04T00:00:00/2017-11-05T01:02:20”]
query3: [“2017-11-04T00:00:00/2017-11-05T01:03:20”]
query4: [“2017-11-04T00:00:00/2017-11-05T01:04:20”]

``

The timestamp would change based on the local time as we use a library to generate timestamp. We just want a day of data so timestamp doesn’t really matter for us.

My question is. Is it better if we do intervals like this. [“2017-11-04/2017-11-05”]? Or it doesn’t really matter and Druid is smart enough to handle any timestamp?

We have memcached as cache for broker.