CacheEvictionPolicy - non-obsolete way to set expiration?

Vote:
 

The constructor for CacheEvictionPolicy that takes a TimeSpan expiration is obsolete. It is also not possible to set the expiration on the CacheEvictionPolicy after construction. Is there a non-obsolete way to achieve this?

#207711
Oct 01, 2019 9:57
Vote:
 

These are not obsolete: 

public CacheEvictionPolicy(
	TimeSpan expiration,
	CacheTimeoutType timeoutType
)

https://world.episerver.com/documentation/Class-library/?documentId=cms/11/269E26F

public CacheEvictionPolicy(
	TimeSpan expiration,
	CacheTimeoutType timeoutType,
	IEnumerable<string> cacheKeys
)

https://world.episerver.com/documentation/Class-library/?documentId=cms/11/269E26E

#207712
Edited, Oct 01, 2019 10:09
Vote:
 

Thanks!

#207713
Oct 01, 2019 10:11
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.