[QUESTION]: How can I limit the disk size used by Badger or the number of keys that Badger can store through parameter configuration in the program?
Delete-S opened this issue · comments
Delete-S commented
Question.
How can I limit the disk size used by Badger or the number of keys that Badger can store through parameter configuration in the program?
Aman Mangal commented
@Delete-S I don't think that is possible today. What is the use case you are looking at for this functionality?
Delete-S commented
@mangalaman93 Thanks for answering my questions.
this is the use case:
we use badger on a iot device. In order to prevent the program from running out of hard disk when a bug leads to unlimited SET data into the badger.
Aman Mangal commented
I think the best way to achieve this is to partition the disk you have and use badger on just one partition.
Delete-S commented
@mangalaman93 thanks ~