Hi!
I have an issue with memcached. I store values using string key with
template 'question_%d_%d'. I have enought memory:

STAT bytes 13307757
STAT limit_maxbytes 134217728

but here is a log of my application:

2012-01-03 16:40:42,896 Get question for key question_4_1045: cache
miss
2012-01-03 18:03:10,270 Get question for key question_4_1045: cache
miss
2012-01-03 22:26:16,454 Get question for key question_4_1045: cache
miss
2012-01-04 02:01:54,639 Get question for key question_4_1045: cache
miss
2012-01-04 02:45:03,647 Get question for key question_4_1045: cache
miss
2012-01-04 02:46:55,880 Get question for key question_4_1045: cache
hit
2012-01-04 02:51:55,606 Get question for key question_4_1045: cache
miss

so we can see, that two sequential calls with the same key lead to two
cache misses, and only once value is fetched from cache.

Why memcached removes my data from cache, even if there is enough
space? Is it possible to fix it?

I tried to check my memcached log file (according to config file it
is /var/log/memcached.log), but it is empty. Thanks!

Reply via email to