# EventHubQueueCacheFactory Methods

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

## CreateCache(string, IStreamQueueCheckpointer&lt;string&gt;, ILoggerFactory) {#createcache-string-orleans-streams-istreamqueuecheckpointer-string-microsoft-ext-fa2a6ad9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecachefactory/methods/createcache-string-orleans-streams-istreamqueuecheckpointer-string-microsoft-ext-fa2a6ad9/)

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

```csharp
public IEventHubQueueCache CreateCache(string partition, IStreamQueueCheckpointer<string> checkpointer, ILoggerFactory loggerFactory)
```

Function which create an EventHubQueueCache, which by default will configure the EventHubQueueCache using configuration in CreateBufferPool function and AddCachePressureMonitors function.

### Parameters

- `partition` (`string`)
- `checkpointer` (`IStreamQueueCheckpointer<string>`)
- `loggerFactory` (`ILoggerFactory`)
