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 override CacheStream GetCacheStream(
	string key,
	string group,
	string subGroup,
	StreamMode streamMode,
	CacheDependency dependency,
	DateTime absoluteExpiration,
	TimeSpan slidingExpiration,
	CacheItemPriority priority
)
Visual Basic
Public Overrides Function GetCacheStream ( 
	key As String,
	group As String,
	subGroup As String,
	streamMode As StreamMode,
	dependency As CacheDependency,
	absoluteExpiration As DateTime,
	slidingExpiration As TimeSpan,
	priority As CacheItemPriority
) As CacheStream
Visual C++
public:
virtual CacheStream^ GetCacheStream(
	String^ key, 
	String^ group, 
	String^ subGroup, 
	StreamMode streamMode, 
	CacheDependency^ dependency, 
	DateTime absoluteExpiration, 
	TimeSpan slidingExpiration, 
	CacheItemPriority priority
) override

Parameters

key
Type: System..::..String
The cache key used to reference the item.
group
Type: System..::..String
The group whose keys are to be returned.
subGroup
Type: System..::..String
The sub group of the group foe which keys are to be returned.
streamMode
Type: Alachisoft.NCache.Web.Caching..::..StreamMode
Enumeration to specify the desired mode to open the stream.
dependency
Type: Alachisoft.NCache.Runtime.Dependencies..::..CacheDependency
CacheDependency to be added. When any dependency changes, the object becomes invalid and is removed from the cache. If there are no dependencies, this paramter contains a null reference.
absoluteExpiration
Type: System..::..DateTime
The time at which the added stream expires and is removed from the cache. If absolute expiration is not desired, specify Cache.NoAbsoluteExpiration
slidingExpiration
Type: System..::..TimeSpan
The interval between the time the added stream was last accessed and when it expires. If this value is the equivalent of 20 minutes, the object expires and is removed from the cache 20 minutes after it is last accessed. If sliding expiration is not desired, specify Cache.NoSlidingExpiration
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