DataCacheAdd Method (String, Object)Windows Server AppFabric Caching Compatibility Library
Inserts an object into the cache.

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
)

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.

Return Value

Type: DataCacheItemVersion
The DataCacheItemVersion object that represents the version of the object added to the cache using the provided key value.
Remarks

If an item using the same key is already present in the in-memory data grid, this call throws an exception of type DataCacheException with the ErrorCode set to KeyAlreadyExists.
See Also

Reference