Hmm, my idea was that once calculated, the values never need to be recalculated ever again. In that sense, nth_new_moon() could have just been a table instead of a something that computes these values. That's why the (possibly) system-wide cache.

This should probably default to MemoryCache, for politeness. Also, how about making it a method instead of a global?

when you say "make it a method", do you mean to make the cache an instance variable, or are you talking about just how it gets called?


I suppose it can be an instance variable too, it just that the savings for using a cache is not going to be that big.

--d

Reply via email to