fre 2011-06-03 klockan 12:56 +0200 skrev Kinkie:

> > Regarding purging then there is other ideas on that, such as keeping
> a
> > timestamped "purge list" which invalidates cache hits from before.
> > Benefit is that purge operations is instant, not requiring a whole
> cache
> > scan. Downside is that we somehow need (should) to keep track of a
> > timestamp when an cached object last was evaulated against the purge
> > list for performance reasons.
> 
> Quite expensive, if we allow (as purge does) regexps :\

Not really. The penalty is only on cache hits, and only on objects which
have not been hit after the last purge pattern were added.

But it does add a "if (a < b)" condition on every cache hit, and one
more parameter to keep track of per object.

Regards
Henrik


Reply via email to