[Interest] Qt based LRU container?

Richard Moore rich at kde.org
Sat Oct 19 21:20:47 CEST 2013


On 19 October 2013 18:43, Mark <markg85 at gmail.com> wrote:
> Does anyone know of an LRU based container for Qt? I'm specifically
> looking for an implementation that notifies me when something gets
> removed due to LRU kicking in. QCache would be nearly OK for my needs,
> but it doesn't notify me when something drops out due to LRU kicking
> in.

If you need to know when something is evicted then it's not really
acting as just a cache. That said, you could do it by making the
object in the cache inform you in its destructor.

Rich.



More information about the Interest mailing list