CachedObjectIdT Class

ScaleOut Software NamedCache API
The typed CachedObjectIdT class serves as an identifier for a cached object in a NamedCache collection where the type of the object is known.
Inheritance Hierarchy


Namespace:  Soss.Client
Assembly:  soss_namedcache (in soss_namedcache.dll) Version:

public sealed class CachedObjectId<T> : CachedObjectId

Type Parameters

The Type of the object stored in StateServer with this CachedObjectIdT.

The CachedObjectIdT type exposes the following members.


Public propertyKey
The StateServerKey representing the key of a cached object. Read-only.
(Inherited from CachedObjectId.)
Public propertyValue
Fetches the object corresponding to this CachedObjectIdT from its NamedCache, casts the returned object to the Type T, and returns the result.

Public methodEquals(Object)
Determines whether two CachedObjectId instances are equal.
(Inherited from CachedObjectId.)
Public methodEquals(CachedObjectId)
Determines whether two CachedObjectId instances are equal.
(Inherited from CachedObjectId.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Overrides GetHashCode method.
(Inherited from CachedObjectId.)
Public methodGetStringKey
Retrieves the original (unhashed) string used as a key to a StateServer object.
(Inherited from CachedObjectId.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string representing this key.
(Inherited from CachedObjectId.)

Instances of CachedObjectIdT are created by the QueryKeysT method within the NamedCache for returning results corresponding to objects whose type is prescribed by the query. The Value property may be used for returning the object corresponding to the CachedObjectIdT as a typed object.

Since CachedObjectIdT is a subclass of CachedObjectId, you may use a CachedObjectIdT as an input to any NamedCache method requiring a CachedObjectId.

See Also