# ICacheMonitor.TrackMemoryAllocated(int)

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

```csharp
public abstract void TrackMemoryAllocated(int memoryInBytes)
```

Called when new memory is allocated by the cache.

### Parameters

- `memoryInBytes` (`int`): The memory in bytes.
