[Catalyst] ::Session::Store::FastMmap issues

Matt S Trout dbix-class at trout.me.uk
Thu Oct 18 01:00:30 GMT 2007

On Wed, Oct 17, 2007 at 09:14:02PM +0100, Peter Flanigan wrote:
> Florian Ragwitz wrote:
> > there is an issue with the Cache::FastMmap store for the Session plugin.
> > When $c->session contains some large very data structures
> > Cache::FastMmap refuses to store them for whatever reason and returns
> > false when calling ->set on it.
> >   
> I found that I needed to increase the page size
> Cache::FastMmap->new( page_size  => '256k'  );
> where 256k is larger than the largest data structure I wanted to store


Documents the specific issue.

Though I definitely agree that if possible (i.e. if other things obeying the
Cache::Cache API do something similar) an undef return should provoke at least
a log message, and if possible some form of trappable error in
Catalyst::Plugin::Cache (since that should become the best practice way to
do session storage over time).

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/

More information about the Catalyst mailing list