Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any opensource Memory DISK Buffer implementation in java?

I don't know how to name this kind of buffer exactly, I need it in the following scenario:

  1. Data are received continuously from network.
  2. The data received are added into Buffer.
  3. There is a reader reading data from Buffer continuously and perform processing actions.

Since the data is big and can not be totally resident in memory.I need a buffer that can manage the exchange between memory and disk(flushing data to disk if buffer is full and reading data from memory buffer or disk continuously), which is transparent to writer and reader(much like a database but I want to keep it fast,simple and light weight). Don't know if there is any opensource implementation for it.. Thanks!

like image 205
ygnhzeus Avatar asked Aug 04 '26 02:08

ygnhzeus


1 Answers

Try ehcache.

like image 171
sjr Avatar answered Aug 05 '26 15:08

sjr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!