CommandFlags.cs from StackExchange/StackExchange.Redis
// 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.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using RESPite;
namespace StackExchange.Redis
{
/// <summary>
/// Behaviour markers associated with a given command.
/// </summary>
/*
WARNING: the *declaration order* of the members below is load-bearing, and is not the obvious/natural order.
This enum has duplicate values (the obsolete "slave" aliases, and PreferMaster which is zero like None) and
multi-bit values (PreferReplica/DemandReplica occupy a 2-bit region), both of which [Flags] formatting handles
badly. Which of two same-valued names ToS
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key