ObjectCache::Set Method
.NET Framework (current version)
When overridden in a derived class, inserts a cache entry into the cache.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
| Name | Description | |
|---|---|---|
![]() | Set(CacheItem^, CacheItemPolicy^) | When overridden in a derived class, inserts the cache entry into the cache as a CacheItem instance, specifying information about how the entry will be evicted. |
![]() | Set(String^, Object^, CacheItemPolicy^, String^) | When overridden in a derived class, inserts a cache entry into the cache. |
![]() | Set(String^, Object^, DateTimeOffset, String^) | When overridden in a derived class, inserts a cache entry into the cache, specifying time-based expiration details. |
The typical behavior of the Set overload methods is an insert-or-update operation. A cache entry is either inserted as a new entry if the specified entry does not exist, or the cache entry is updated with a new value if it already exists.
Show:
