# EventHubQueueCacheFactory Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecachefactory/)

## EventHubQueueCacheFactory(EventHubStreamCachePressureOptions, StreamCacheEvictionOptions, StreamStatisticOptions, IEventHubDataAdapter, EventHubMonitorAggregationDimensions, OrleansInstruments, Func&lt;EventHubCacheMonitorDimensions, ILoggerFactory, ICacheMonitor&gt;, Func&lt;EventHubBlockPoolMonitorDimensions, ILoggerFactory, IBlockPoolMonitor&gt;) {#constructor-orleans-configuration-eventhubstreamcachepressureoptions-orleans-con-46f09e70}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecachefactory/constructors/constructor-orleans-configuration-eventhubstreamcachepressureoptions-orleans-con-46f09e70/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/EventHubQueueCacheFactory.cs#L42-L61)

```csharp
public EventHubQueueCacheFactory(EventHubStreamCachePressureOptions cacheOptions, StreamCacheEvictionOptions evictionOptions, StreamStatisticOptions statisticOptions, IEventHubDataAdapter dataAdater, EventHubMonitorAggregationDimensions sharedDimensions, OrleansInstruments instruments, Func<EventHubCacheMonitorDimensions, ILoggerFactory, ICacheMonitor> cacheMonitorFactory = null, Func<EventHubBlockPoolMonitorDimensions, ILoggerFactory, IBlockPoolMonitor> blockPoolMonitorFactory = null)
```

Constructor for EventHubQueueCacheFactory

### Parameters

- `cacheOptions` (`EventHubStreamCachePressureOptions`)
- `evictionOptions` (`StreamCacheEvictionOptions`)
- `statisticOptions` (`StreamStatisticOptions`)
- `dataAdater` (`IEventHubDataAdapter`)
- `sharedDimensions` (`EventHubMonitorAggregationDimensions`)
- `instruments` (`OrleansInstruments`)
- `cacheMonitorFactory` (`Func<EventHubCacheMonitorDimensions, ILoggerFactory, ICacheMonitor>`)
- `blockPoolMonitorFactory` (`Func<EventHubBlockPoolMonitorDimensions, ILoggerFactory, IBlockPoolMonitor>`)
