# RedisStreamingOptions.MaxStreamLength

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Redis/Orleans.Streaming.Redis/Streams/RedisStreamingOptions.cs)

```csharp
public long? MaxStreamLength
```

Gets or sets the maximum number of stream entries to retain. When null, Redis stream length is unbounded.
