Question about query cache for 2.X

default value for
"indices.queries.cache.count" is 1000 and
"indices.queries.cache.size" is "10%"

my question is: if 1000 query won't occupy 10% memory, will it start to retire key or it won't until the memory is occupy 10%?

after read the code, it turns out that weather count or size beyond the max will cause evication of cache.
boolean requiresEviction() {
int size = this.mostRecentlyUsedQueries.size();
return size == 0?false:size > this.maxSize || this.ramBytesUsed() > this.maxRamBytesUsed;
}