Cache provider: Azure Redis
Azure Redis cache provisioning
This section describes how to provision an Azure Redis Cache. Please follow the steps below:
In a web browser, log in to the Azure portal.
Select Create a resource.
Select See more in All services.
Search for and select Azure Cache for Redis.
Select Create.
Complete the required fields for the new instance of Redis Cache.
Select Next: Networking.
Specify the desired connectivity method in the Networking page.
Select Next: Advanced.
Add tags for the Redis resource. Leave blank if not needed.
Select Next: Review + create.
Review the settings. If correct, select Create.
Realtime API configuration
This section describes how to configure the Realtime API web application to utilize the Azure Redis caching mechanism. Please follow the steps below.
Open the appsettings.json.config file from the Realtime API web application.
Ensure you have uploaded these two assemblies within the Realtime API web application’s bin directory:
RedPoint.Resonance.AzureRedisCache.dll
StackExchange.Redis.dll
In the appsettings.json.config file, locate
CacheSettings
and add the following entries:
"Caches": [
{
"Name": "AzureRedisCache",
"Assembly": "RedPoint.Resonance.AzureRedisCache",
"Class": "RedPoint.Resonance.RedisCache. AzureRedisCacheHandler",
"Settings": [
{
"Key": "ConnectionString",
"Value": "REPLACE THIS TEXT WITH THE AZURE REDIS CONNECTION STRING"
}
]
}
]