Trond,

> Well, it will allocate a new item unless it finds an expired item in  
> the tail of the item LRU. You may have expired items in the middle of  
> your LRU list, and you would still evict items from the cache if all  
> memory is allocated.

I just read this now. Do I understand correctly that if all items
would have the same livetime (e.g. 300 sec), the LRU chain should
contain an expired object every now and then.

But when we use different livetimes (e.g. 300 + 86400), it could come
to this case: the end of LRU is a long-living but still good item, so
all other (out-of-date) item after that in the change won't be
reused?

this would explain some here, as we use different cache times
from 300 over 3600 over 86400 to maximum (30days AFAIR).

regards.

Werner.

Reply via email to