Show / Hide Table of Contents

Struct CacheEntry

Basic ICacheEntry implementation.

Implements
ICacheEntry
Inherited Members
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: Tangosol.Net.Cache
Assembly: Coherence.dll
Syntax
public struct CacheEntry : ICacheEntry

Constructors

CacheEntry(object, object)

Creates an instance of a CacheEntry.

Declaration
public CacheEntry(object key, object value)
Parameters
Type Name Description
object key

Cache entry key.

object value

Cache entry value.

CacheEntry(object, object, object)

Creates an instance of a CacheEntry.

Declaration
public CacheEntry(object key, object value, object origValue)
Parameters
Type Name Description
object key

Cache entry key.

object value

Cache entry value.

object origValue

The original value in the cache that this entry's value is replacing.

Properties

Key

Gets the key for this cache entry.

Declaration
public object Key { get; }
Property Value
Type Description
object

The key for this cache entry.

OriginalValue

Determine the original value in the cache that this cache entry's value is replacing.

Declaration
public object OriginalValue { get; }
Property Value
Type Description
object

The original value for this cache entry.

Value

Gets or sets the value for this cache entry.

Declaration
public object Value { get; set; }
Property Value
Type Description
object

The value for this cache entry.

Methods

Equals(object)

Checks two cache entries for equality.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to compare with.

Returns
Type Description
bool

true iff this CacheEntry. and the passed object are equivalent.

Overrides
ValueType.Equals(object)

GetHashCode()

Generates hash code for this CacheEntry.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for this CacheEntry.

Overrides
ValueType.GetHashCode()

ToString()

Returns a string that represents the current CacheEntry.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current CacheEntry.

Overrides
ValueType.ToString()

Operators

implicit operator CacheEntry(DictionaryEntry)

Converts DictionaryEntry to CacheEntry.

Declaration
public static implicit operator CacheEntry(DictionaryEntry entry)
Parameters
Type Name Description
DictionaryEntry entry

DictionaryEntry.

Returns
Type Description
CacheEntry

CacheEntry with key and value extracted from specified DictionaryEntry.

implicit operator DictionaryEntry(CacheEntry)

Converts CacheEntry to DictionaryEntry.

Declaration
public static implicit operator DictionaryEntry(CacheEntry entry)
Parameters
Type Name Description
CacheEntry entry

CacheEntry.

Returns
Type Description
DictionaryEntry

DictionaryEntry with key and value extracted from specified CacheEntry.

Implements

ICacheEntry
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.