Parse Redis RDB dump files. This library is based on redis-rdb-tools.
This library can be used as a package.
go get github.com/tommy351/rdb-goOr as a command line tool.
go get github.com/tommy351/rdb-go/cmd/rdb rdb path/to/dump.rdbUse 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.
MIT