CacheFactory
Provides factory methods for creating cache providers used by the Telerik Reporting engine and services.
Definition
Namespace:Telerik.Reporting.Services.Engine
Assembly:Telerik.Reporting.dll
Syntax:
public static class CacheFactory
Inheritance: objectCacheFactory
Methods
Creates a new instance of a database cache that stores cached data in a database.
public static ICache CreateDatabaseCache(string backendName, string connectionString)
The name of the database engine to use (e.g., "MSSQL", "SQLite").
connectionStringstringThe connection string used to connect to the cache database.
Returns:An ICache implementation that stores cached data in a database.
To use a database cache, first create the underlying database and schema using the Database Cache Configuration Tool. The database cache implementation relies on Telerik OpenAccess ORM, so the following assemblies must be referenced: Telerik.OpenAccess.dll, Telerik.OpenAccess.35.Extensions.dll. Proper assembly binding redirects may be required. For more information, see: Configuring the Database Cache Provider
Creates a new instance of a file-based cache that stores cached data in the specified directory.