Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 189 by [email protected]: Objects do not move to top of LRU when
touched
http://code.google.com/p/memcached/issues/detail?id=189
Hi,
I'm using v1.4.5 installed on Fedora. This could be something basic I don't
understand and not a bug - if so, I'm sorry.
If I set() a new object with expiry time of X , the object expires
regardless if BEFORE X elapsed I "touch" it as explained in "Touching keys
with add" @ http://code.google.com/p/memcached/wiki/NewProgrammingTricks.
My expectation was that the "touch" will reset the expiration time of the
object back to X (from the time of "touch") but it doesn't. If "touching"
doesn't reset the expiration time to the original value X then I don't
understand what do you mean by "add will actually bump a value to the front
of memcached's LRU if it already exists.". What difference does it make for
me if the object is at the top or bottom of LRU if the expiration time is
still the same?
This happened to me using two different clients (a perl client and .NET
client) so if it is a bug I don't think it has to do with the clients.
Many thanks,
Yossi.