Class CacheFactory
Inheritance
Namespace: Telerik.Reporting.Services.Engine
Assembly: Telerik.Reporting.dll
Syntax
public static class CacheFactory
Methods
CreateDatabaseCache(String, String)
Creates new instance of database cache that will store cached data in a database.
Declaration
public static ICache CreateDatabaseCache(string backendName, string connectionString)
Parameters
System.String
backendName
Specifies which database engine should be used. |
System.String
connectionString
A connection string that should be used to connect to the cache database |
Returns
ICache
The newly created cache instance. |
Remarks
In order to use a database cache you should firstly use the Database Cache Configuration Tool
in order to create the underplaying database and its schema.
Note that the database cache implementation relies on the Telerik OpenAccess
so the following OpenAccess core libraries should be referenced: Telerik.OpenAccess.dll, Telerik.OpenAccess.35.Extensions.dll .
Proper assembly binding redirects might apply.
See also: Configuring the Database Cache Provider
CreateFileCache()
Creates a new instance of file cache in a temp folder that will store cached data.
Declaration
public static ICache CreateFileCache()
Returns
ICache
The newly created cache instance. |
CreateFileCache(String)
Creates a new instance of file cache that will store cached data in a directory of the file system.
Declaration
public static ICache CreateFileCache(string directory)
Parameters
System.String
directory
The directory path that will be used from the cache as repository. |
Returns
ICache
The newly created cache instance. |