append influence on the LRU

10 views
Skip to first unread message

Martin Hellmich

unread,
Apr 27, 2012, 4:10:49 AM4/27/12
to memc...@googlegroups.com
Hi,

will using append() on an item put it to the top of the LRU as an add()
does?

Cheers
Martin

--
Martin Hellmich Information Technology Department
mhel...@cern.ch CERN
+41 22 76 765 26 CH-1211 Geneva 23

dormando

unread,
Apr 30, 2012, 3:12:09 PM4/30/12
to memc...@googlegroups.com
Yes.

append internally replaces the object, so the new one ends up at the head
naturally. Though even if it didn't, we'd still make it push to the head
on append.
Reply all
Reply to author
Forward
0 new messages