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 key used to reference the stream.
- streamMode
- Type: Alachisoft.NCache.Web.Caching..::..StreamMode
Enumeration to specify the desired mode to open the stream.
- 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