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)?

1.17

$ go version

What operating system are you using?

centos7

What version of Badger are you using?

v3.2103.2

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.