/CLRdb

Redis RDB file parser for .NET

Primary LanguageC#GNU General Public License v3.0GPL-3.0

CLRdb

Build Status

CLRdb is a Redis RDB file parser for .NET.

Installation

PM> Install-Package CLRdb

Features

Currently only supports string values.

Supported Platforms

  • .NET Platform Standard 1.0 and above

Usage

Reading an RDB file into a dictionary:

IDictionary<string, string> db = RdbReader.Read(File.OpenRead("dump.rdb"));

Reading key/value pairs from an RDB file one-by-one:

using (var reader = new RdbStreamReader(File.OpenRead("dump.rdb"))
{
    while (reader.ReadNext())
    {
        KeyValuePair<string, string> keyValue = reader.Current;
    }
}