# StreamCacheEvictionOptions Properties

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

## DataMaxAgeInCache {#datamaxageincache-69b8e0de}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.streamcacheevictionoptions/properties/datamaxageincache-69b8e0de/)

[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.

## DataMinTimeInCache {#datamintimeincache-cbaac2f6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.streamcacheevictionoptions/properties/datamintimeincache-cbaac2f6/)

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

```csharp
public TimeSpan DataMinTimeInCache
```

Gets or sets the minimum time a message will stay in cache before it is available for time based purge.

## MetadataMinTimeInCache {#metadatamintimeincache-0962edac}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.streamcacheevictionoptions/properties/metadatamintimeincache-0962edac/)

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

```csharp
public TimeSpan? MetadataMinTimeInCache
```

Gets or sets the minimum time that message metadata ([StreamSequenceToken](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamsequencetoken/)) will stay in cache before it is available for time based purge. Used to avoid cache miss if the full message was purged. Set to `null` to disable this tracking.
