# MemoryPooledCache&lt;TSerializer&gt;.GetMaxAddCount

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.memorypooledcache-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.memorypooledcache-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/MemoryStreams/MemoryPooledCache.cs#L148)

```csharp
public int GetMaxAddCount()
```

Gets the maximum number of items that can be added.

### Returns

The maximum number of items that can be added.
