November Happy Hour will be moved to Thursday December 5th.

Class MasterCacheKeys

Returns cache keys that should be used as master key dependencies for other objects, to get those other objects purged form the cache when their dependent data changes.

Inheritance
System.Object
MasterCacheKeys
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: Mediachase.Data.Provider
Assembly: Mediachase.DataProvider.dll
Version: 13.30.0
Syntax
public static class MasterCacheKeys

Fields

AnyAssociationKey

Gets a cache key which is purged when any association is updated.

Declaration
public static readonly string AnyAssociationKey
Field Value
Type Description
System.String

AnyAssociationTypeKey

Gets a cache key which is purged when any association type is updated.

Declaration
public static readonly string AnyAssociationTypeKey
Field Value
Type Description
System.String

AnyCatalogKey

Gets a cache key which is purged when any catalog is updated.

Declaration
public static readonly string AnyCatalogKey
Field Value
Type Description
System.String

AnyCurrencyKey

Gets a cache key which is purged when any currency is updated.

Declaration
public static readonly string AnyCurrencyKey
Field Value
Type Description
System.String

AnyEntryKey

Gets a cache key which is purged when any entry is updated.

Declaration
public static readonly string AnyEntryKey
Field Value
Type Description
System.String

AnyEntryRelationKey

Gets a cache key which is purged when any entry-entry relation is updated.

Declaration
public static readonly string AnyEntryRelationKey
Field Value
Type Description
System.String

AnyNodeKey

Gets a cache key which is purged when any node is updated.

Declaration
public static readonly string AnyNodeKey
Field Value
Type Description
System.String

AnyNodeRelationKey

Gets a cache key which is purged when any node-node or node-entry relation is updated.

Declaration
public static readonly string AnyNodeRelationKey
Field Value
Type Description
System.String

AnyTaxCategoryKey

Gets a cache key which is purged when any tax category is updated.

Declaration
public static readonly string AnyTaxCategoryKey
Field Value
Type Description
System.String

AnyWarehouseKey

Gets a cache key which is purged when any warehouse is updated.

Declaration
public static readonly string AnyWarehouseKey
Field Value
Type Description
System.String

AssociationRootKey

A root key that all associations depend on and that will be purged when a node or entry is removed (as it could be part of a cached association).

Declaration
public static readonly string AssociationRootKey
Field Value
Type Description
System.String

RelationRootKey

A root key that all relations depend on and that will be purged when a node or entry is removed (as it could be part of a cached relation).

Declaration
public static readonly string RelationRootKey
Field Value
Type Description
System.String

RootKey

The root key that all inserts to CatalogCache depend on

Declaration
public static readonly string RootKey
Field Value
Type Description
System.String

Methods

GetAssociationKey(Int32)

Gets a cache key which is purged when the associations for the specific entry are updated.

Declaration
public static string GetAssociationKey(int entryId)
Parameters
Type Name Description
System.Int32 entryId

The entry id.

Returns
Type Description
System.String

The cache key to use as master key for another cache entry.

GetCatalogKey(Int32)

Gets a cache key which is purged when the specific catalog is updated.

Declaration
public static string GetCatalogKey(int catalogId)
Parameters
Type Name Description
System.Int32 catalogId

The catalog identifier.

Returns
Type Description
System.String

The cache key to use as master key for another cache entry.

GetEntryKey(Int32)

Gets a cache key which is purged when the specific entry is updated.

Declaration
public static string GetEntryKey(int entryId)
Parameters
Type Name Description
System.Int32 entryId

The entry id.

Returns
Type Description
System.String

The cache key to use as master key for another cache entry.

GetEntryRelationKey(Int32)

Gets a cache key which is purged when an entry-entry relation with the specific entry at either end of the relation is updated.

Declaration
public static string GetEntryRelationKey(int entryId)
Parameters
Type Name Description
System.Int32 entryId

The entry id.

Returns
Type Description
System.String

The cache key to use as master key for another cache entry.

GetMetaClassKey(Int32)

Gets a cache key which is purged when the specific meta class is updated.

Declaration
public static string GetMetaClassKey(int metaClassId)
Parameters
Type Name Description
System.Int32 metaClassId

The meta class id.

Returns
Type Description
System.String

GetMetaObjectKey(Int32, Int32)

Gets a cache key which is purged when the specific meta object is updated.

Declaration
public static string GetMetaObjectKey(int metaClassId, int metaObjectId)
Parameters
Type Name Description
System.Int32 metaClassId

The meta class id.

System.Int32 metaObjectId

The meta object id.

Returns
Type Description
System.String

GetNodeKey(Int32)

Gets a cache key which is purged when the specific node is updated.

Declaration
public static string GetNodeKey(int nodeId)
Parameters
Type Name Description
System.Int32 nodeId

The node id.

Returns
Type Description
System.String

The cache key to use as master key for another cache entry.

GetNodeRelationKeyForEntry(Int32)

Gets a cache key which is purged when a node-entry relation of the specific entry is updated.

Declaration
public static string GetNodeRelationKeyForEntry(int entryId)
Parameters
Type Name Description
System.Int32 entryId

The entry id.

Returns
Type Description
System.String

The cache key to use as master key for another cache entry.

GetNodeRelationKeyForNode(Int32)

Gets a cache key which is purged when a node-node or node-entry relation with the specific node at either end of the relation is updated.

Declaration
public static string GetNodeRelationKeyForNode(int nodeId)
Parameters
Type Name Description
System.Int32 nodeId

The node id.

Returns
Type Description
System.String

The cache key to use as master key for another cache entry.

GetTaxCategoryKey(Int32)

Gets a cache key which is purged when the tax categories for the specific tax category is updated.

Declaration
public static string GetTaxCategoryKey(int taxCategoryId)
Parameters
Type Name Description
System.Int32 taxCategoryId

The tax category id.

Returns
Type Description
System.String

The cache key to use as master key for another cache tax category.

GetTaxCategoryKey(String)

Gets a cache key which is purged when the tax categories for the specific tax category is updated.

Declaration
public static string GetTaxCategoryKey(string categoryName)
Parameters
Type Name Description
System.String categoryName

The tax category name.

Returns
Type Description
System.String

The cache key to use as master key for another cache tax category.