Re: IPC::Shareable, or, it's supposed to SHARE it, not make more!

2001-09-01 Thread Joe Schaefer

Rob Bloodgood [EMAIL PROTECTED] writes:

 The code in expire_old_accounts is creating a new tied ARRAYREF instead of
 replacing the value of the hash key on this line:
 
 $ACCOUNTS{'QUEUE'} = [@accounts]; #also tried \@accounts;
 
 This didn't happen w/ IPC::Shareable 0.52.  But 0.6 is apparently very
 different, and I can't make the code look like it wants, so the new
 reference is a replacement, not an autovivication.
 

Sorry, but I think you're SOL with IPC::Shareable.  Use something else
instead- I like BerkeleyDB for things like this, but you'll have to 
serialize/stringify your hash values first.

-- 
Joe Schaefer




Re: IPC::Shareable, or, it's supposed to SHARE it, not make more!

2001-08-31 Thread Perrin Harkins

 One of the shiny golden nuggets I received from said slice was a shared
 memory cache.  It was simple, it was elegant, it was perfect.  It was also
 based on IPC::Shareable.  GREAT idea.  BAD juju.

Just use Cache::Cache.  It's faster and easier.
- Perrin