I am using the RefreshableCachedObject to store a web page generated by 
a remote server.  During refresh(), I will re-retrieve the page and 
update the cache.  In addition to the page, I need to use the lifetime 
returned by the server to set the next cache refresh.  To do this, I 
need to change the value of CachedObject.expires to reflect the new 
expiration interval, i.e. from 600000( 10 minutes) to 300000( 5 
minutes).  The field is private, this not accessible from my class.

The easiest way would be to add setExpire() to RefrshableCachedObject or 
CachedObject.  I can supply a patch.

Is their a better way?

Paul Spencer


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to