net.whitbeck.rdb_parser.package.html Maven / Gradle / Ivy
Show all versions of rdb-parser Show documentation
A simple Redis RDB file parser for Java
Overview
A very simple Java library for parsing Redis RDB files.
This library does the minimal amount of work to read entries (e.g. a new DB selector, or a key/value pair
with an expiry) from an RDB file. In particular, it does not make any assumptions about string encodings
or the types of objects to coerce Redis data into, thereby limiting itself to returning byte arrays or
lists of byte arrays for keys and values. Furthermore, it performs lazy decoding of the packed encodings
(ZipList, Hashmap as ZipList, Sorted Set as ZipList, and Intset) such that those are only decoded when
needed.
The ZipMap encoding, deprecated as of RDB version 4 is not currently supported. If you need it, please
open a Github issue.
References