Using Redis Storage for the Reporting REST Service
This article explains how to use Redis Storage for the Reporting REST Service storage.
Adding the necessary dependencies
The Telerik.Reporting.Cache.StackExchangeRedis
assembly is required for Telerik Reporting to access a Redis database. This assembly uses the StackExchange.Redis client library.
Using the Telerik NuGet repository:
Add a NuGet package reference to the Telerik.Reporting.Cache.StackExchangeRedis
package from the https://nuget.telerik.com/v3/index.json package source (Telerik credentials, or Telerik NuGet key, needed). For details, check How to add the Telerik private NuGet feed to Visual Studio.
Using the Telerik Reporting installation bin folder:
-
In your application project add reference to the StackExchange.Redis NuGet package with version 2.8.16 or greater. This will add a dll reference to StackExchange.Redis.dll.
When using greater version, a binding redirect should be added in the application configuration file to the currently referenced dll version.
Add а reference to the
Telerik.Reporting.Cache.StackExchangeRedis
library located in the{Telerik Reportng installation folder}/Bin
or{Telerik Reportng installation folder}/Bin/netstandard2.0
folder, depending on whether you have a .NET Framework or a .NET project respectively.
Using the Redis storage
Where needed in your application create an instance of the RedisStorage class. It takes as a parameter an StackExchange.Redis.ConnectionMultiplexer object which should be reused for the application lifetime. See (StackExchange.Redis) Basic Usage for more information.