# ICachePressureMonitor

Package: [Microsoft.Orleans.Streaming.EventHubs](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Streaming.EventHubs) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/CachePressureMonitors/ICachePressureMonitor.cs#L10)

```csharp
public interface ICachePressureMonitor
```

Cache pressure monitor records pressure contribution to the cache, and determine if the cache is under pressure based on its back pressure algorithm

## Properties

- [CacheMonitor](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.icachepressuremonitor/properties/cachemonitor-972f7313/)

## Methods

- [IsUnderPressure(DateTime)](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.icachepressuremonitor/methods/isunderpressure-system-datetime-fd38f231/)
- [RecordCachePressureContribution(double)](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.icachepressuremonitor/methods/recordcachepressurecontribution-double-0403dec1/)
