Factory for StreamCache instances. Supports a hint for the expected stream size so memory allocation optimizations can occur for the in-memory implementation.