On Aug 16, 2005, at 9:49 AM, Perrin Harkins wrote:
If you can use Apache::Session::Memcached, why can't you use Apache::Session::MySQL with a common database login? That will mean one connection per apache process. You can also raise the connection limit on your database server if it isn't dying under the load.

I do all of my memcached stuff , including sessions, with mysql failover. its barely more code - i just make every public function address two private functions.

ie:

sub save {
        $_[0]->_save_memcached();
        $_[0]->_save_mysql();
}

sub load {
        if ( !$_[0]->_load_memcached() )
        {
                $_[0]->_load_mysql();
        }
}

Reply via email to