Inserts an object to a region in the cache with a specified object timeout.
Namespace: Soss.Compat.WSAF
Assembly: soss_wsaf_compat (in soss_wsaf_compat.dll) Version: 1.1.0.100 (1.1.0.100)
Syntax
public DataCacheItemVersion Add( string key, Object value, TimeSpan timeout, string region )
Parameters
- key
- Type: SystemString
The unique identifier used to access the object in the cache. - value
- Type: SystemObject
The object to add to the cache. - timeout
- Type: SystemTimeSpan
The amount of time the object should reside in the cache before expiration. - region
- Type: SystemString
The name of the region where the object will be stored.
Return Value
Type: DataCacheItemVersionThe DataCacheItemVersion object that represents the version of the object added to the cache using the provided key value.
Exceptions
Exception | Condition |
---|---|
DataCacheException | Thrown if the object already exists in the cache. |
Remarks
See Also