<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="10.0.11" />

Microsoft.Extensions.Caching.Memory.EvictionReason

public enum EvictionReason
Specifies the reasons why an entry was evicted from the cache.

The item was removed from the cache because it exceeded its capacity.

Expired = 3

The item was removed from the cache because it timed out.

None = 0

The item was not removed from the cache.

Removed = 1

The item was removed from the cache manually.

The item was removed from the cache because it was overwritten.

The item was removed from the cache because its token expired.