Click or drag to resize
CacheableString Class

Note: This API is now obsolete.

An immutable string wrapper that can serve as a distributable key object for caching as well as being a string value.
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Serializable>]
    GemStone.GemFire.CacheSerializable
      GemStone.GemFire.CacheCacheableKey
        GemStone.GemFire.CacheCacheableString

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 CacheableString : CacheableKey

The CacheableString type exposes the following members.

Constructors
  NameDescription
Public methodCacheableString(Char)
Allocates a new instance copying from the given character array.
Public methodCacheableString(String)
Allocates a new instance copying from the given string.
Top
Properties
  NameDescription
Public propertyClassId (Overrides SerializableClassId.)
Public propertyIsWideString
True when the underlying C string is a wide-character string.
Public propertyLength
Gets the length of the underlying C string.
Public propertyObjectSize
return the size of this object in bytes
(Overrides SerializableObjectSize.)
Public propertyValue
Gets the string value.
Top
Methods
  NameDescription
Public methodStatic memberCreate(Char)
Static function to create a new instance copying from the given character array.
Public methodStatic memberCreate(String)
Static function to create a new instance copying from the given string.
Public methodEquals(Object)
Return true if this key matches other object. It invokes the '==' operator of the underlying gemfire::CacheableString object.
(Overrides CacheableKeyEquals(Object).)
Public methodEquals(ICacheableKey)
Return true if this key matches other object. It invokes the '==' operator of the underlying gemfire::CacheableString object.
(Overrides CacheableKeyEquals(ICacheableKey).)
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
Deserializes the managed object -- returns an instance of the IGFSerializable class.
(Overrides SerializableFromData(DataInput).)
Public methodGetHashCode
Return the hashcode for this key.
(Overrides CacheableKeyGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsNullOrEmpty
Static function to check whether IsNullOrEmpty.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToData
Serializes this managed object.
(Overrides SerializableToData(DataOutput).)
Public methodToString
Return a string representation of the object. This returns the same string as Value property.
(Overrides SerializableToString.)
Top
Operators
See Also