Gets an instance of the CacheStream class.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
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
An instance of CacheStream
See Also