Enhancement: Is there a way to customize the persist policy: some data only in memory(eg: by key prefix) the others use the system default policy

What version of Go are you using (go version)?


$ go version

What operating system are you using?


What version of Badger are you using?


Does this issue reproduce with the latest master?

it’s not a issue, just a question( or feature request)

Steps to Reproduce the issue

What Badger options were set?

What did you do?

– not applicable, it’s just a feature request

What did you expect to see?

for my case I need badger to persist some part of the data in disk, and some other data(with special key prefix) only in memroy.

So I want to know is there any way to achieve this?

What did you see instead?

– not applicable

No @Ken_Cheng , there is no way.