Re: [CDBI] object cache errors
[prev]
[thread]
[next]
[Date index for 2005/11/03]
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
|
|
Re: [CDBI] object cache errors
Matt S Trout 13:55 on 03 Nov 2005
|