NET Caching Library Help
AddOrGetExisting Method (SmartCache)




KellermanSoftware.NetCachingLibrary Namespace > SmartCache Class : AddOrGetExisting Method
Inserts a cache entry into the cache, by using a key, an object for the cache entry, an absolute expiration value, and an optional region to add the cache into. The absolute expiration will be the same for both the primary and secondary cache providers.
Overload List
OverloadDescription
Inserts a cache entry into the cache, by using a key, an object for the cache entry, an absolute expiration value, and an optional region to add the cache into. The absolute expiration will be the same for both the primary and secondary cache providers.  
Inserts the specified System.Runtime.Caching.CacheItem object into the cache, specifying information about how the entry will be evicted. The expiration policy will be the same for both the primary and secondary cache providers.  
Inserts a cache entry into the cache, specifying a key and a value for the cache entry, and information about how the entry will be evicted. The expiration policy will be the same for both the primary and secondary cache providers.  
If an item exists in the primary or secondary cache then it is returned, otherwise it is added and null is returned. The default expiration for the primary and secondary cache providers are used.  
If an item exists in the primary or secondary cache then it is returned, otherwise it is added and null is returned. The default expiration for the primary and secondary cache providers are used.  
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SmartCache Class
SmartCache Members