# README
rdb-go
Parse Redis RDB dump files. This library is based on redis-rdb-tools.
Install
This library can be used as a package.
go get github.com/tommy351/rdb-go
Or as a command line tool.
go get github.com/tommy351/rdb-go/cmd/rdb
rdb path/to/dump.rdb
Usage
Use Parser
to iterate over a RDB dump file.
import (
rdb "github.com/tommy351/rdb-go"
)
parser := NewParser(file)
for {
data, err := parser.Next()
if err == io.EOF {
break
}
if err != nil {
panic(err)
}
// ...
}
See examples in the documentation or cmd/rdb/main.go for more details.
License
MIT
# Functions
NewParser returns a new Parser to read from r.
# Variables
ErrInvalidMagicString is returned when a RDB dump file is not started with the magic string "REDIS".
# Structs
No description provided by the author
BloomFilter represents a bloom filter data structure implemented by RedisBloom.
CuckooFilter represents a cuckoo filter data structure implemented by RedisBloom.
No description provided by the author
DataKey contains the database, the key and the expiry of data.
HashData is returned when all entries in a hash are all read.
HashEntry is returned when a new hash entry is read.
HashHead contains the key and the length of a hash.
HashValue contains a key-value pair of a hash entry.
No description provided by the author
No description provided by the author
ListData is returned when all entries in a list are all read.
ListEntry is returned when a new list entry is read.
ListHead contains the key and the length of a list.
No description provided by the author
Parser parses a RDB dump file.
SetData is returned when all entries in a set are all read.
SetEntry is returned when a new set entry is read.
SetHead contains the key and the length of a set.
SortedSetData is returned when all entries in a sorted set are all read.
SortedSetEntry is returned when a new sorted set entry is read.
SortedSetHead contains the key and the length of a sorted set.
SortedSetValue contains the value and its score of a sorted set entry.
StringData contains the key and the value of string data.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author