SalesBuy
1-855-856-7678
Technical SupportSupport
Adds an object to the cache.
Namespace: Microsoft.ApplicationServer.Caching
'Declaration Public Function Add ( _ key As String, _ value As Object _ ) As DataCacheItemVersion 'Usage Dim instance As DataCache Dim key As String Dim value As Object Dim returnValue As DataCacheItemVersion returnValue = instance.Add(key, value)
If an item using the same key is already present in the cache, this call throws an exception of type DataCacheException with the ErrorCode set to KeyAlreadyExists. Expiration settings are derived from the named cache configuration.