0

I was wondering if 'curr_items' in the memcache stats is the number of stored keys ? From my testing , curr_items returned for me a higher number then the counter I've used to count the number of memcache keys by getting all the keys and counting it.

Can someone confirm that curr_items isn't the number of keys and what does curr_items represents

1 Answer 1

3

Yes, this is a known behavior of memcached. Quoting :

Expiration in memcached is lazy. In general, an item cannot be known to be expired until something looks at it.

see Why Isn't curr_items Decreasing When Items Expire?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.