# VolatileJournalStorage Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.volatilejournalstorage/)

## VolatileJournalStorage {#constructor-94b0d7bd}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.volatilejournalstorage/constructors/constructor-94b0d7bd/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Journaling/VolatileJournalStorage.cs#L186-L188)

```csharp
public VolatileJournalStorage()
```

Initializes a new isolated in-memory journal storage instance using the default journal format.

## VolatileJournalStorage(string?) {#constructor-string-nullable-5a175e2a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.volatilejournalstorage/constructors/constructor-string-nullable-5a175e2a/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Journaling/VolatileJournalStorage.cs#L194-L196)

```csharp
public VolatileJournalStorage(string? journalFormatKey)
```

Initializes a new instance of the [VolatileJournalStorage](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.volatilejournalstorage/) class.

### Parameters

- `journalFormatKey` (`string?`): The journal format key to stamp on writes.

## VolatileJournalStorage(string?, VolatileJournalStorageOptions) {#constructor-string-nullable-orleans-durable-journaling-volatilejournalstorageopt-de1cc6f0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.volatilejournalstorage/constructors/constructor-string-nullable-orleans-durable-journaling-volatilejournalstorageopt-de1cc6f0/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Journaling/VolatileJournalStorage.cs#L204-L206)

```csharp
public VolatileJournalStorage(string? journalFormatKey, VolatileJournalStorageOptions options)
```

Initializes an isolated in-memory journal with configurable snapshot thresholds.

### Parameters

- `journalFormatKey` (`string?`): The journal format key to stamp on writes.
- `options` (`VolatileJournalStorageOptions`): The snapshot thresholds.
