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
RedisValuevalue
RedisValue
Properties
Name
The name of the hash field
public RedisValue Name { get; }
Property Value
Value
The value of the hash field
public RedisValue Value { get; }
Property Value
Methods
Equals(HashEntry)
Compares two values for equality
public bool Equals(HashEntry value)
Parameters
value
HashEntry
Returns
Equals(object)
Compares two values for equality
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
See Object.GetHashCode()
public override int GetHashCode()
Returns
ToString()
See Object.ToString()
public override string ToString()
Returns
Operators
operator ==(HashEntry, HashEntry)
Compares two values for equality
public static bool operator ==(HashEntry x, HashEntry y)
Parameters
Returns
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
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
operator !=(HashEntry, HashEntry)
Compares two values for non-equality
public static bool operator !=(HashEntry x, HashEntry y)