grandecola / bigqueue

Embedded, Fast and Persistent bigqueue implementation
MIT License
443 stars 32 forks source link

Limit memory size not available #87

Open 892294101 opened 2 years ago

892294101 commented 2 years ago

Bigqueue. Setarenasize() default 128M

Bigqueue. Setmaxinmememarenas() defaults to 3

Theoretically, the maximum number of Enqueue data is 128 * 3, but in practice, I can test unlimited Enqueue data.

How can I limit the Enqueue data to 1024m?

892294101 commented 2 years ago

I plan to use it as a data caching module in my project.

I hope you can tell me the solution.

Thank you.

aman-arista commented 2 years ago

Bigqueue writes data to disks and that is why you could enqueue more data that what is allowed to be in memory.