MemoryCache.Set Method (CacheItem, CacheItemPolicy)
Inserts a cache entry into the cache by using a CacheItem instance to supply the key and value for the cache entry.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
An invalid combination of arguments for the cache entry was passed. This occurs if the following expiration details are set on the policy object for the cache entry:
Like other Set method overloads, the method always puts a cache value in the cache, regardless whether an entry already exists that has the same key. If the specified entry does not exist in the cache, a new cache entry is inserted. If the specified entry already exists, its value is updated.
Available since 4.0