rdb is a Go package that implements parsing and encoding of the Redis RDB file format.
This package was heavily inspired by redis-rdb-tools by Sripathi Krishnan.
go get github.com/cupcake/rdb
Redis RDB parser for Go
License: MIT License
rdb is a Go package that implements parsing and encoding of the Redis RDB file format.
This package was heavily inspired by redis-rdb-tools by Sripathi Krishnan.
go get github.com/cupcake/rdb
I would suggest that each Decoder method have a single 'error' return value so that the decoding logic is able to early abort. For large rdb dumps this would be very useful.
Hi, I'm a newcomer to Go, but I noticed that in encoder.go, EncodeExpiry() uses little-endian byte ordering to write an 8 byte long integer. I may be wrong, but shouldn't Big-Endian ordering be used here as it is the accepted network order?
I try wirte a tool base your code to analyze the redis key's size. But current interface of Decoder have no Info like the origin redis-rdb-tools does.
Any chance to add the Info?
The exact license of "crc64/crc64.go" is undefined. It seems safe to assume this was copied and pasted from elsewhere and based on the copyright holder, also seems safe to assume this is covered under the Vitess license. If this is the case, could you include a copy of the vitess license file and update the header to point at this file instead of LICENSE (which is MIT).
In the decoder's decode method, once a key is read that has an expiry that expiry will be provided to every single object read afterwards. For someone trying to restore a Redis DB from the RDB file, this would be a Bad Thing. I will make a PR ASAP as the fix is easy.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.