Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class CacheItem

Represents an item cached in a CacheProvider derived class instance

Inheritance
System.Object
CacheItem
Implements
System.IDisposable
Namespace: EPiServer.Data.Cache
Assembly: EPiServer.Data.dll
Version: 12.0.3
Syntax
public class CacheItem : Object, IDisposable

Properties

Key

Gets the unique key used to identify the cached object.

Declaration
public string Key { get; }
Property Value
Type Description
System.String

The key.

StoreName

Gets or sets the name of the store that the item is associated with

Declaration
public string StoreName { get; }
Property Value
Type Description
System.String

The name of the store.

Value

Gets or sets the cached object

Declaration
public object Value { get; }
Property Value
Type Description
System.Object

The value.

Methods

Dispose()

Declaration
public void Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Implements

System.IDisposable

Extension Methods