rosedblabs / rosedb

Lightweight, fast and reliable key/value storage engine based on Bitcask.

Home Page:https://rosedblabs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add GetAllKeys

roseduan opened this issue · comments

A new feature: list all stored keys conatain all datastructure types.

Here is my idea:

  • add GetKeys command in different data types respectively(GetStrsKeys, GetListKeys, GetHashKeys...)
  • add GetAllKeys command in db.go, retrieve all data types GetKeys concurrently

The GetAllKeys method like this:
func (db *RoseDB) GetAllKeys(dataTypes... DataType) (map[DataType][][]byte, error)

I have add a GetStrsKeys method in strs.go

I have added pr #190