Skip to main content
Skip table of contents

Cache provider: Azure Redis

Azure Redis cache provisioning

This section describes how to provision an Azure Redis Cache. Please follow the steps below:

  1. In a web browser, log in to the Azure portal.

  2. Select Create a resource.

  3. Select See more in All services.

  4. Search for and select Azure Cache for Redis.

  5. Select Create.

  6. Complete the required fields for the new instance of Redis Cache.

  7. Select Next: Networking.

  8. Specify the desired connectivity method in the Networking page.

  9. Select Next: Advanced.

  10. Add tags for the Redis resource. Leave blank if not needed.

  11. Select Next: Review + create.

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

  1. Open the appsettings.json.config file from the Realtime API web application.

  2. Ensure you have uploaded these two assemblies within the Realtime API web application’s bin directory:

    • RedPoint.Resonance.AzureRedisCache.dll

    • StackExchange.Redis.dll

  3. In the appsettings.json.config file, locate CacheSettings and add the following entries:

CODE
 "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"
                      }
                  ]
              }
            ]
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.