Created
June 24, 2021 16:27
-
-
Save ealsur/fd242b9efdc2ad48f573c67a8268231e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.AddCosmosCache((CosmosCacheOptions cacheOptions) => | |
{ | |
cacheOptions.ContainerName = "myContainer"; | |
cacheOptions.DatabaseName = "myDatabase"; | |
cacheOptions.CosmosClient = preExistingClient; | |
/* Creates the container if it does not exist */ | |
cacheOptions.CreateIfNotExists = true; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment