Re: [CDBI] object cache errors

[prev] [thread] [next] [Date index for 2005/11/03]

From: Matt S Trout
Subject: Re: [CDBI] object cache errors
Date: 13:55 on 03 Nov 2005
On Thu, Nov 03, 2005 at 10:01:32AM +0000, Mike Whitaker wrote:
> Trying to track down a problem in a fairly complex Java-calling-Perl- 
> via-xinetd system, here, and just trying to rule things out.
> 
> Sometimes, according to the Java end of things, my Class::DBI code is  
> not returning the object it's asked for. The only possibility, were  
> it within my code, that I can see would be Class::DBI's object cache  
> somehow coughing up a different object with a different primary key.

Class::DBI does *not* have an object cache.

It has a live objects index, which is entirely different - it's designed
to ensure only one copy of the object exists in memory at any given time.

You can turn it off by setting $Class::DBI::Weaken_Is_Available to 0.

If you actually want an object cache, try Class::DBI::Sweet.

        -- 
             Matt S Trout       Specialists in Perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] object cache errors
Mike Whitaker 10:01 on 03 Nov 2005

Re: [CDBI] object cache errors
Matt S Trout 13:55 on 03 Nov 2005

Re: [CDBI] object cache errors
Mike Whitaker 14:03 on 03 Nov 2005

Re: [CDBI] object cache errors
Perrin Harkins 15:26 on 03 Nov 2005

Generated at 20:55 on 09 Nov 2005 by mariachi v0.52