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

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Journaling/VolatileJournalStorage.cs#L162-L174)

```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`.
