"Set" and then "get" don't retrieve the stored value

Brad Fitzpatrick brad at danga.com
Mon Nov 20 19:53:49 UTC 2006


Ah, great idea.

Can you commit to both trunk (1.2.x) and the 1.1.x branch?



On Mon, 20 Nov 2006, Steven Grimm wrote:

> Here's a possible solution. This takes advantage of the LRU queue; it is
> too expensive to scan the entire cache and forcibly delete every item,
> but it's *not* that expensive to scan just the last few items in the
> queue up until we get to an item that the regular "oldest allowed"
> setting can handle, deleting the newer ones. With that in place, we can
> set the oldest time back one second, so newly set items aren't
> immediately expired.
>
> -Steve
>
>
> Steven Grimm wrote:
> > I think I have a good solution for this, actually. Patch forthcoming
> > (easier to code it than write it up.)
> >
> > -Steve
>
>


More information about the memcached mailing list