# StreamCacheEvictionOptions.DataMaxAgeInCache

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.streamcacheevictionoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.streamcacheevictionoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Common/RecoverableStreamOptions.cs)

```csharp
public TimeSpan DataMaxAgeInCache
```

Gets or sets the difference in time between the newest and oldest messages in the cache. Any messages older than this will be purged from the cache.
