Language

Cache.Add Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Adds a new object to the cache. An exception is thrown if the item is already located in the cache.

Overload List

Name Description
Cache.Add (String, Object)
Adds an object to the cache. Objects are not put in regions, and are distributed across all cache hosts in the cluster.
Cache.Add (String, String, Object)
Adds an object to the cache. Provides the option to save the object to a region.
Cache.Add (String, String, Object, Tag[])
Adds an object to the cache. This method provides the option to save the object to a region and enables associating tags with the cached object.
Cache.Add (String, String, Object, TimeSpan)
Adds an object to the cache. Provides the option to save the object to a region and specify an object time-out that overrides the default setting from the cache.
Cache.Add (String, String, Object, Tag[], TimeSpan)
Adds an object to the cache. This method provides the option to save the object to a region and enables associating tags with the cached object and specifying how long the object should remain in the cache.

See Also

Reference

Cache Class
Cache Members
System.Data.Caching Namespace