On 28 Jul 2014, at 14:59, Norbert Hartl <
norbert@hartl.name> wrote:
Am 28.07.2014 um 14:19 schrieb Sven Van Caekenberghe <sven@stfx.eu>:
Hi Norbert,
Neo-Caching was an experiment, a proof of concept, it has been integrated in Pharo.
See category 'System-Caching', the hierarchy AbstractCache, LRUCache and TTLCache.
Ah, good to know, thanks. That's even better because it seems to be in pharo3.
Regarding the TTLCache: If I want obsolete keys to vanish as early as possible the best way might be to have a thread that calls #removeStaleValues periodically, right?
Yes, that is correct. But I would not overdo it, there is a real cost to this operation (scanning everything). In general I think it is better to amortise the cost over multiple operations.