Skip to content

Add support of the DUMP with all data types #3319

@ggyuchive

Description

@ggyuchive

Search before asking

  • I had searched in the issues and found no similar issues.

Motivation

Currently in kvrocks, DUMP command is supported in string, bitmap, hash, list, set, zset.
However it's not supported in other types. Basically in redis, it supports DUMP with all types.

e.g. dump bloom-filter type

kvrocks

127.0.0.1:6666> bf.reserve bfkey 0.01 100
OK
127.0.0.1:6666> dump bfkey
(error) ERR Invalid or Not supported object type
127.0.0.1:6666>

Redis

127.0.0.1:6379> bf.reserve bfkey 0.01 100
OK
127.0.0.1:6379> dump bfkey
"\a\x810\x16\xe5\xa2\x89\xbe\xf8\x04\x02\x00\x02\x01\x02\x05\x02\x02\x02@d\x04{\x14\xaeG\xe1zt?\x02\b\x04\xe9\x86/\xb25\x0e&@\x02D\x80\x02\x00\x05\xc3\t@\x90\x01\x00\x00\xe0\x83\x00\x01\x00\x00\x02\x00\x00\x0c\x007\x92(\xde\x13H\xb8\xac"
127.0.0.1:6379>

Solution

Add to support DUMP with all types which implemented in kvrocks.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions