London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

CacheEvictionPolicy - non-obsolete way to set expiration?

Vote:
0

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:
0

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:07
Vote:
1

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.