(RADIATOR) change_attr and changeAttrByNum have different behaviour.

João Pedro Gonçalves joaop at co.sapo.pt
Wed May 11 09:58:49 CDT 2005


Hi,
$p->change_attr('Account-Status-Type' => 'Stop');
will not clean the internal Radiator cache, which makes

$p->getAttrByNum($Radius::Radius::ACCT_STATUS_TYPE);
return the older version since it was cached in $self->{CachedAttrs}.

Is this a documented feature? I guess that, since the *AttrByNum() 
methods
call *_attr, this caching would be better implemented in _attr() 
methods.
Even better would be to use some kind of Memoize method, like the one
developed by Mark Jason Dominus:

http://perl.plover.com/Memoize/
Thanks!

Joao Pedro Goncalves
Portugal Telecom

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list