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 onto the Azure portal: https://portal.azure.com.
Click Create a resource.
Click See more in All services.
Search for and click on Azure Cache for Redis.
Click Create.
Complete the required fields for the new instance of Redis Cache and click Next: Networking.
Specify the desired connectivity method in the Networking page. Click Next: Advanced.
Add tags for the Redis resource. Leave blank if not needed. Click Next: Review + create.
Review the settings. If correct, click the Create button.
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"
}
]
}
]