APITypes/HashEntry.cs

StackExchange.Redis · src/StackExchange.Redis/APITypes/HashEntry.cs · csharp · MIT
database

A struct representing a Redis hash field with name and value properties for storing key-value pairs in Redis hashes.

// Source: https://github.com/StackExchange/StackExchange.Redis | License: MIT | Copyright 2014 Stack Exchange
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace StackExchange.Redis;

/// <summary>
/// Describes a hash-field (a name/value pair).
/// </summary>
public readonly struct HashEntry : IEquatable<HashEntry>
{
    internal readonly RedisValue name, value;

    /// <summary>
    /// Initializes a <see cref="HashEntry"/> value.
    /// </summary>
    /// <param name="name">The name for this hash entry.</param>
    /// <param name="value">The value for this hash entry.</param>
    public HashEntry(RedisValue name, RedisValue value)
    {
        this.name = name;
        this.value =

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key