Gets System.IO.BufferedStream of given buffer size.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: (


public Stream GetBufferedStream()
Visual Basic
Public Function GetBufferedStream As Stream
Visual C++
Stream^ GetBufferedStream()

Return Value

An instance of System.IO.BufferedStream with buffer size of 4Kb.


CacheStream does not buffer the data. Each read/write operation performed on the stream is propagated to cache. However this can cause performance issues if small chunks of data are being read/written from/to stream. System.IO.BufferedStream supports buffering of data. This method returns an instance of System.IO.BufferedStream which encapsulates CacheStream.

See Also