Constructs an empty cache.
Constructs an empty cache, sized to accommodate the specified number of elements without the need for the internal data structures to be resized.