Redis server type enum with parsing and helper methods for client configuration.
// 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 RESPite;
namespace StackExchange.Redis
{
/// <summary>
/// Indicates the flavor of a particular redis server.
/// </summary>
public enum ServerType
{
/// <summary>
/// Classic redis-server server.
/// </summary>
[AsciiHash("standalone")]
Standalone,
/// <summary>
/// Monitoring/configuration redis-sentinel server.
/// </summary>
[AsciiHash("sentinel")]
Sentinel,
/// <summary>
/// Distributed redis-cluster server.
/// </summary>
[AsciiHash("cluster")]
Clust
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key