On Nov 8, 5:27 am, Franko Goebls <[email protected]> wrote:
> Hello,
> I have using memcached for long without problems, very low memory
> usage, but lately i added new functionalisty.
>
> Search results are stored in memory (not in DB) and should be expired
> (removed from memcached) after 300 seconds. I do it like this:
>
> $memcache->set("$search_id:".$userdata['session_id'], $resarr, false,
> 300);
>
> and what? Well, look at this:
> Item count: 3880
> Age:1 day, 5 hours and 5 minutes
> Evicted:No
> Items: item
> 212318293:11a30117e173905208a1f96604042036,324909...etc....etc....
>
> Not removed after 1 day 5 hours :FFFFF, hundreds of results like this
> from this query are not removed, why is that? I do it properly from
> what i know.
>
> Used Cache Size 445.7 MBytes
> Total Cache Size 512.0 MBytes
>
> Entires are not removed so memory is filled up and important entries
> are removed from cache to release memory but not important search
> results should be removed after 300 secs, why they arent?
http://code.google.com/p/memcached/wiki/FAQ#When_do_expired_cached_items_get_deleted_from_the_cache?
Jared