AtomsFramework Persistence Layer Reference Guide

CacheKey Class

[This is preliminary documentation and subject to change.]

Maintains information about the key fields of each cached object.

For a list of all members of this type, see CacheKey Members.

System.Object
   AtomsFramework.CacheKey

[Visual Basic]
Public Class CacheKey
[C#]
public class CacheKey

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This class stores information about the key components of the objects in the cache. Since objects can have multiple key fields of different types the CacheKey class is written in a fairly generic manner.

It maintains a collection of key values (all of which must be non-null) and uses them to generate a hashcode. This hashcode is then used as the key to the particular cache entry in question.

The CacheKey also stores the type of the object being stored in the cache, which must be a subclass of the PersistentObject, and is also used by the equality checking operations in the PersistentObject class.

Requirements

Namespace: AtomsFramework

Assembly: AtomsFramework (in AtomsFramework.dll)

See Also

CacheKey Members | AtomsFramework Namespace