On disk cache using BDB

Diego Woitasen diego at woitasen.com.ar
Thu May 17 18:58:58 PDT 2012


On Wed, May 16, 2012 at 8:05 PM, Diego Woitasen <diego at woitasen.com.ar> wrote:
> Hi,
>  If someone wants to have a look and test, I've implemented the
> on-disk cache using BDB.  The cache is modular, now you can select
> between on-memory cache or BDB. In the future we should have a better
> on-disk cache implementation, may be using our own engine, but we can
> discuss that later.
>
> The code is here: https://github.com/diegows/wanproxy/commits/on-disk-cache
>
> I have to test it better and requires a cleanup but it's working.
>
> Feel free to comment, suggest or criticize :)
>

I've been doing some updates. It's working, some real scenario tests
are required but works with my tests. I've fixed an stupid issue where
I forgot to open the DB on the decoder pipe.

TODO:

- Code cleanup.
- More testing.
- Configuration must be improved. For example, in the current code
there is no easy way to access the configuration from everywhere. To
finish this first implementation faster I've added a method in the
XCodecCache class and its subclasses called new_uuid(). This is to
open a new cache using the same parameters but with a new UUID. If the
configuration system is improved we could remove this.
- DB prunning, ageing.
- Close the database when there is an stop event.
- etc.

Regards,
 Diego

-- 
Diego Woitasen



More information about the wanproxy mailing list