첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System;
using System.Collections.Generic;
using System.Linq;

using StackExchange.Redis;

string serverAddress = "192.168.29.197:6379";

ConnectionMultiplexer multiplexer = ConnectionMultiplexer.Connect($"{serverAddress},allowAdmin=true");

IServer server = multiplexer.GetServer(serverAddress);

IGrouping<string, KeyValuePair<string, string>>[] groupingArray = server.Info();

for(int i = 0; i < groupingArray.Length; i++)
{
    Console.WriteLine(groupingArray[i].Key);

    foreach(KeyValuePair<string, string> keyValuePair in groupingArray[i])
    {
        Console.WriteLine("{0} -> {1}", keyValuePair.Key, keyValuePair.Value);
    }
}

 

※ 패키지 설치 : StackExchange.Redis

 

1. 비주얼 스튜디오를 실행한다.

2. 비주얼 스튜디오에서 [도구] / [NuGet 패키지 관리자] / [패키지 관리자 콘솔] 메뉴를 클릭한다.

3. [패키지 관리자 콘솔]에서 아래 명령을 실행한다.

Install-Package StackExchange.Redis
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요