alastairtree / LazyCache

An easy to use thread safe in-memory caching service with a simple developer friendly API for c#
https://nuget.org/packages/LazyCache
MIT License
1.72k stars 159 forks source link

ExpirationMode.ImmediateEviction does not exist in 2.1.2 #143

Closed joshuadevries closed 3 years ago

joshuadevries commented 3 years ago

When I try to use ExpirationMode.ImmediateEviction it does not work. The enum does not contain this option: image

The enum: image

I am using version 2.1.2. image

joshuadevries commented 3 years ago

I was able to get this working by using ExpirationMode.ImmediateExpiration. So It looks like its just the documentation that is out of date.

alastairtree commented 3 years ago

Thanks for the reminder to update the docs - they were based on the beta version of the api which was ExpirationMode.ImmediateEviction, but was changed to ExpirationMode.ImmediateExpiration as that is more correct.