Gets an instance of the CacheStream class.

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

Syntax

C#
public virtual CacheStream GetCacheStream(
	string key,
	StreamMode streamMode,
	CacheItemPriority priority
)
Visual Basic
Public Overridable Function GetCacheStream ( 
	key As String,
	streamMode As StreamMode,
	priority As CacheItemPriority
) As CacheStream
Visual C++
public:
virtual CacheStream^ GetCacheStream(
	String^ key, 
	StreamMode streamMode, 
	CacheItemPriority priority
)

Parameters

key
Type: System..::..String
The key used to reference the stream.
streamMode
Type: Alachisoft.NCache.Web.Caching..::..StreamMode
Enumeration to specify the desired mode to open the stream.
priority
Type: Alachisoft.NCache.Runtime..::..CacheItemPriority
The relative cost of the object, as expressed by the CacheItemPriority enumeration. The cache uses this value when it evicts objects; objects with a lower cost are removed from the cache before objects with a higher cost.

Return Value

Type: CacheStream
An instance of CacheStream

See Also