in reply to Re: Re: Problem storing value in persistent hash with MLDBM
in thread Problem storing value in persistent hash with MLDBM

Per Apache::Session::BerkeleyDB, I believe Apache::Session can in fact use BerkeleyDB files. and also consider using DBD::AnyData or DBD::Sqlite if you are ever required to use a relational DB and don't want to do a heavyweight install.
  • Comment on Re: Re: Re: Problem storing value in persistent hash with MLDBM

Replies are listed 'Best First'.
Re: Re: Re: Re: Problem storing value in persistent hash with MLDBM
by relax99 (Monk) on Oct 07, 2002 at 20:08 UTC

    I just looked at Apache::Session::BerkeleyDB and some other modules. It seems like all of them tie a hash to a disk file. I guess what I'm trying to do is something slightly different. I want to store multiple sessions in a single file... and then I want to be able to create a session object that a client would use that would only use data from a single session (single anynymous hash, referenced by session id). If you look at the code I provide you'll see what I'm trying to do.

    My problem is that I don't know how make the top level of hash notice that something had changed on the lower level, so that it updates the file on the disk. I'm looking for ideas at this point.

    But in any case, thank you for the hints to the modules that do similar work I might use them for some of the future projects.