Memcached options for key expiration

I want to know if there is a way for Memcached to stop its collection of LRU keys so that I can find out at what point the allocated memory allocated for memcached will be full.

I do not want memcached to reset old keys when it leaves space.

+3
source share
1 answer

Use the -M switch and memcached will return an error when the memory is exhausted rather than deleting items.

Example:

memcached -d -m 1000 -M

This starts memcached, demonized with a maximum memory of 1000 MB. It will return an error when 1000 MB is consumed.

+7
source

All Articles