Table of Contents

Struct HashEntry

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

Describes a hash-field (a name/value pair)

public struct HashEntry : IEquatable<HashEntry>
Implements
Inherited Members

Constructors

HashEntry(RedisValue, RedisValue)

Initializes a HashEntry value

public HashEntry(RedisValue name, RedisValue value)

Parameters

name RedisValue
value RedisValue

Properties

Name

The name of the hash field

public RedisValue Name { get; }

Property Value

RedisValue

Value

The value of the hash field

public RedisValue Value { get; }

Property Value

RedisValue

Methods

Equals(HashEntry)

Compares two values for equality

public bool Equals(HashEntry value)

Parameters

value HashEntry

Returns

bool

Equals(object)

Compares two values for equality

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

See Object.GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

See Object.ToString()

public override string ToString()

Returns

string

Operators

operator ==(HashEntry, HashEntry)

Compares two values for equality

public static bool operator ==(HashEntry x, HashEntry y)

Parameters

x HashEntry
y HashEntry

Returns

bool

implicit operator KeyValuePair<RedisValue, RedisValue>(HashEntry)

Converts to a key/value pair

public static implicit operator KeyValuePair<RedisValue, RedisValue>(HashEntry value)

Parameters

value HashEntry

Returns

KeyValuePair<RedisValue, RedisValue>

implicit operator HashEntry(KeyValuePair<RedisValue, RedisValue>)

Converts from a key/value pair

public static implicit operator HashEntry(KeyValuePair<RedisValue, RedisValue> value)

Parameters

value KeyValuePair<RedisValue, RedisValue>

Returns

HashEntry

operator !=(HashEntry, HashEntry)

Compares two values for non-equality

public static bool operator !=(HashEntry x, HashEntry y)

Parameters

x HashEntry
y HashEntry

Returns

bool