# ChronologicalEvictionStrategy.ShouldPurge(CachedMessage, CachedMessage, DateTime)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.chronologicalevictionstrategy/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.chronologicalevictionstrategy/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Streaming/Common/PooledCache/ChronologicalEvictionStrategy.cs#L85-L89)

```csharp
protected virtual bool ShouldPurge(ref CachedMessage cachedMessage, ref CachedMessage newestCachedMessage, DateTime nowUtc)
```

Given a cached message, indicates whether it should be purged from the cache.

### Parameters

- `cachedMessage` (`CachedMessage`): The cached message.
- `newestCachedMessage` (`CachedMessage`): The newest cached message.
- `nowUtc` (`DateTime`): The current time (UTC).

### Returns

`true` if the message should be purged, `false` otherwise.
