{"repo":"HDT3213/rdb","free":true,"listed":false,"github":"https://github.com/HDT3213/rdb","clone":"git clone https://github.com/HDT3213/rdb.git","description":"Golang implemented Redis RDB parser for secondary development and memory analysis","language":"Go","stars":626,"topics":["go","rdb","redis","parser","analyzer"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"中文版 This is a golang implemented Redis RDB parser for secondary development and memory analysis. It provides abilities to: - Generate memory report for rdb file - Convert RDB files to JSON - Convert RDB files to Redis Serialization Protocol (or AOF file) - Find the biggest N keys in RDB files - Find the hottest N keys by LFU frequency in RDB files - Draw FlameGraph to analysis which kind of keys occupied most memory - Customize data usage - Generate RDB file Support RDB version: 1 Json Fromat Detail Common Fields All objects contain these base fields: - db : database index - key : key name - size : estimated memory size in bytes - type : redis type (string/list/set/hash/zset/stream/aux/functions) - expiration (optional): expiration time in RFC3339 format, omitted if key has no expiration - encoding (optional): the encoding used by redis internally - lru (optional): LRU idle time in seconds. Present when Redis uses the maxmemory-policy allkeys-lru or volatile-lru eviction policy - lfu (optional): LFU frequency counter (0-255). Present when Redis uses the maxmemory-policy allkeys-lfu or volatile-lfu eviction policy Example with LRU: Example with LFU: string list set hash zset stream aux functions Generate Memory Report RDB uses rdb encoded size to estimate redis memory usage. Example: The examples for csv result: Analyze By Prefix If you can distinguish modules based on the prefix of the key, for example, the key of user data is User: , the key of Post is Post: , the user stati","default_branch":null,"files":null,"tree":[],"storefront":"/r/HDT3213","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HDT3213/rdb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}