# VolatileJournalStorage.CreateIfNotExistsAsync(IReadOnlyDictionary&lt;string, string&gt;, CancellationToken)

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

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

```csharp
public ValueTask<bool> CreateIfNotExistsAsync(IReadOnlyDictionary<string, string>? metadata = null, CancellationToken cancellationToken = default(CancellationToken))
```

Creates this journal storage instance if it does not already exist.

### Parameters

- `metadata` (`IReadOnlyDictionary<string, string>`): Initial caller-owned metadata properties.
- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

`true` if storage was created; otherwise, `false`.
