CLRdb is a Redis RDB file parser for .NET.
PM> Install-Package CLRdb
Currently only supports string values.
- .NET Platform Standard 1.0 and above
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;
}
}