skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class CacheFactory

Factory class for creating built-in cache implementations for Telerik Reporting Services.

Inheritance
System.Object
CacheFactory
Namespace: Telerik.Reporting.Services.WebApi
Assembly: Telerik.Reporting.Services.WebApi.dll

Syntax

[Obsolete("Telerik.Reporting.Services.WebApi.CacheFactory is now obsolete. Please use Telerik.Reporting.Services.Engine.CacheFactory instead.")]
public static class CacheFactory
Remarks

This class is obsolete. Use CacheFactory instead. Provides methods to create file-based and database-based cache instances for storing report data.

Methods

CreateDatabaseCache(String, String)

Creates a database-based cache instance using the specified database backend and connection string.

Declaration
public static ICache CreateDatabaseCache(string backendName, string connectionString)
Parameters
System.String backendName

The database backend name (e.g., "SqlServer", "MySQL", "Oracle", "PostgreSQL"). Supported values depend on the Telerik OpenAccess configuration.

System.String connectionString

A valid database connection string for connecting to the cache database. The format depends on the specified backend.

Returns
ICache

An ICache instance that stores cached data in the specified database.

Remarks

Prerequisites: Use the Database Cache Configuration Tool to create the database schema before using this method. Dependencies: Requires Telerik.OpenAccess.dll and Telerik.OpenAccess.35.Extensions.dll libraries. Assembly binding redirects may be required in the application configuration file.

CreateFileCache()

Creates a file-based cache instance using the system's temporary directory.

Declaration
public static ICache CreateFileCache()
Returns
ICache

An ICache instance that stores cached data in the system temp directory under "ReportService" folder.

Remarks

The cache directory will be automatically created at %TEMP%\ReportService if it doesn't exist.

CreateFileCache(String)

Creates a file-based cache instance using a specified directory.

Declaration
public static ICache CreateFileCache(string directory)
Parameters
System.String directory

The directory path where cached data will be stored. The directory will be created if it doesn't exist.

Returns
ICache

An ICache instance that stores cached data in the specified directory.

Remarks

Ensure the application has read/write permissions to the specified directory location.

Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.