# EventHubQueueCacheFactory

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/EventHubQueueCacheFactory.cs#L15)

```csharp
public class EventHubQueueCacheFactory : IEventHubQueueCacheFactory
```

Factory class to configure and create IEventHubQueueCache

## Constructors

- [EventHubQueueCacheFactory(EventHubStreamCachePressureOptions, StreamCacheEvictionOptions, StreamStatisticOptions, IEventHubDataAdapter, EventHubMonitorAggregationDimensions, OrleansInstruments, Func&lt;EventHubCacheMonitorDimensions, ILoggerFactory, ICacheMonitor&gt;, Func&lt;EventHubBlockPoolMonitorDimensions, ILoggerFactory, IBlockPoolMonitor&gt;)](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecachefactory/constructors/constructor-orleans-configuration-eventhubstreamcachepressureoptions-orleans-con-46f09e70/)

## Properties

- [BlockPoolMonitorFactory](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecachefactory/properties/blockpoolmonitorfactory-7d9728c9/)
- [CacheMonitorFactory](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecachefactory/properties/cachemonitorfactory-5f71054e/)

## Methods

- [CreateCache(string, IStreamQueueCheckpointer&lt;string&gt;, ILoggerFactory)](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecachefactory/methods/createcache-string-orleans-streams-istreamqueuecheckpointer-string-microsoft-ext-fa2a6ad9/)
