Click or drag to resize
CacheableDate Class

Note: This API is now obsolete.

An immutable date wrapper that can serve as a distributable key object for caching as well as being a string value.
Inheritance Hierarchy
System.Object
  GemStone.GemFire.Cache.CacheableDate

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public class CacheableDate : ICacheableKey

The CacheableDate type exposes the following members.

Constructors
  NameDescription
Public methodCacheableDate()
Allocates a new default instance.
Public methodCacheableDate(DateTime)
Initializes a new instance of the CacheableDate to the given System.DateTime value.
Top
Properties
  NameDescription
Public propertyClassId
Returns the classId of the instance being serialized. This is used by deserialization to determine what instance type to create and deserialize into.
Public propertyObjectSize
return the size of this object in bytes
Public propertyValue
Gets the System.DateTime value.
Top
Methods
  NameDescription
Public methodStatic memberCreate()
Static function that returns a new default instance.
Public methodStatic memberCreate(DateTime)
Static function that returns a new instance initialized to the given System.DateTime value.
Public methodStatic memberCreateDeserializable
Factory function to register this class.
Public methodEquals(Object)
Return true if this key matches other object.
(Overrides Object.Equals(Object).)
Public methodEquals(ICacheableKey)
Return true if this key matches other object.
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 methodFromData
Deserialize this object, typical implementation should return the 'this' pointer.
Public methodGetHashCode
Return the hashcode for this key.
(Overrides Object.GetHashCode().)
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 methodToData
Serializes this object.
Public methodToString
Return a string representation of the object.
(Overrides Object.ToString().)
Top
Fields
  NameDescription
Public fieldStatic memberEpochTime
DataTime value since 1/1/1970
Top
See Also