skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • 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 CacheStorage

Inheritance
System.Object
CacheStorage
DatabaseStorage
FileStorage
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Reporting.Cache
Assembly: Telerik.Reporting.dll

Syntax

public class CacheStorage : IStorage

Constructors

CacheStorage(ICache)

Initializes a new instance of the CacheStorage class.

Declaration
public CacheStorage(ICache cache)
Parameters
ICache cache

The target cache instance which will contain the stored values.

Methods

AcquireLock(String)

Acquires a lock on a named resource.

Declaration
public IDisposable AcquireLock(string key)
Parameters
System.String key

The name of the lock.

Returns
System.IDisposable

A disposable lock object.

Implements
IStorage.AcquireLock(String)
Remarks

Implements the AcquireLock(String) interface member.

AddInSet(String, String)

Adds a single string value to a set of values denoted from the given key.

Declaration
public void AddInSet(string key, string value)
Parameters
System.String key

The key that denotes the stored set value.

System.String value

The value that is added to the set.

Implements
IStorage.AddInSet(String, String)
Remarks

Implements the AddInSet(String, String) interface member.

Delete(String)

Deletes a key with its value (string or byte array) from the storage.

Declaration
public void Delete(string key)
Parameters
System.String key

The key that denotes the stored value that should be removed.

Implements
IStorage.Delete(String)
Remarks

Implements the Delete(String) interface member.

DeleteInSet(String, String)

Deletes a single string value from a set of values denoted from the given key.

Declaration
public bool DeleteInSet(string key, string value)
Parameters
System.String key

The key that denotes the stored set value.

System.String value

The value that should be deleted from the given set.

Returns
System.Boolean

True if set with the given key is found and it contained the given value before deleted. Otherwise false.

Implements
IStorage.DeleteInSet(String, String)
Remarks

Implements the DeleteInSet(String, String) interface member.

DeleteSet(String)

Deletes set of values denoted by the given key.

Declaration
public void DeleteSet(string key)
Parameters
System.String key

The key that denotes the stored set.

Implements
IStorage.DeleteSet(String)
Remarks

Implements the DeleteSet(String) interface member.

Exists(String)

Retrieves a value indicating if a single value (string or byte array) exists in the storage.

Declaration
public bool Exists(string key)
Parameters
System.String key

The key that denotes the stored value.

Returns
System.Boolean

True if the key with its value exists in the storage, otherwise false.

Implements
IStorage.Exists(String)
Remarks

Implements the Exists(String) interface member.

ExistsInSet(String, String)

Retrieves a value indicating if a set of values exists in the storage.

Declaration
public bool ExistsInSet(string key, string value)
Parameters
System.String key

The key that denotes the stored set value.

System.String value

Returns
System.Boolean

True if the key with its value exists in the storage, otherwise false.

Implements
IStorage.ExistsInSet(String, String)
Remarks

Implements the ExistsInSet(String, String) interface member.

GetAllMembersInSet(String)

Retrieves all members in a set of string values.

Declaration
public IEnumerable<string> GetAllMembersInSet(string key)
Parameters
System.String key

The key that denotes the stored set value.

Returns
System.Collections.Generic.IEnumerable<System.String>

An enumerable retrieving each value of the set denoted from the given key.

Implements
IStorage.GetAllMembersInSet(String)
Remarks

Implements the GetAllMembersInSet(String) interface member.

GetBytes(String)

Retrieves a byte array value stored under particular key.

Declaration
public byte[] GetBytes(string key)
Parameters
System.String key

The key that denotes the stored byte array value.

Returns
System.Byte[]

The byte array value stored under the given key. If no such key is found, null (Nothing).

Implements
IStorage.GetBytes(String)
Remarks

Implements the GetBytes(String) interface member.

GetCountInSet(String)

Retrieves the count of the values in a set value stored in the storage.

Declaration
public long GetCountInSet(string key)
Parameters
System.String key

The key that denotes the stored set value.

Returns
System.Int64

The count of the values in the set. If no such set exists, zero.

Implements
IStorage.GetCountInSet(String)
Remarks

Implements the GetCountInSet(String) interface member.

GetString(String)

Retrieves a string value stored under particular key.

Declaration
public string GetString(string key)
Parameters
System.String key

The key that denotes the stored string value.

Returns
System.String

The string value stored under the given key. If no such key is found, null (Nothing).

Implements
IStorage.GetString(String)
Remarks

Implements the GetString(String) interface member.

SetBytes(String, Byte[])

Stores a byte array value under particular key.

Declaration
public void SetBytes(string key, byte[] value)
Parameters
System.String key

The key that denotes the stored byte array value.

System.Byte[] value

The value that is stored.

Implements
IStorage.SetBytes(String, Byte[])
Remarks

Implements the SetBytes(String, Byte[]) interface member.

SetString(String, String)

Stores a string value under particular key.

Declaration
public void SetString(string key, string value)
Parameters
System.String key

The key that denotes the stored string value.

System.String value

The value that is stored.

Implements
IStorage.SetString(String, String)
Remarks

Implements the SetString(String, String) interface member.

Was this article helpful?

Tell us how we can improve this article

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