As I understand, Stream retains the recently evaluated elements. I guess it does not retain all evaluated elements (it is not feasible), so it probably uses some internal "cache".

Is it correct? Can I control the size and policies of this cache?

Edit
Report