The Perl 5 module BDB provides asynchronous Berkeley DB access. Its API is very similar to the C API.