Linux

Where Does Memcached Store Config and Cache?

Where self hosted Memcached keeps config and data on Linux servers. See the folder table below. More below.

Last updated

Memcached is RAM cache with file config. The server holds the config plus startup memory flags. Cached objects live in memory only and vanish on restart.

Same config means same slabs and ports. Exact paths vary by distro with sysconfig versus default files. Keep memory limits matched during moves. For backups, copy the config file plus firewall rules. Warmup scripts refill the cache after restarts from primary databases. Screenshots of settings help when support asks for reproduction steps later.

Where Memcached stores this, by platform

Linux
/etc/sysconfig/memcached (config, cache in RAM only)

Config lives in sysconfig or defaults files by distro. Cache itself is RAM only with no disk files. Copy configs plus firewall rules for moves.

Frequently asked questions

How do I migrate Memcached to a new server?

Back up the Memcached config file plus any persistent warmup scripts with services stopped, then install the same release on the new server before restore. Slabs live in RAM only. Mixed releases can refuse old configs, so match versions first.

Does Memcached persist data to disk?

No. Memcached keeps everything in RAM with no disk persistence by design. The server holds the config file plus startup flags. Reboots wipe the cache. Treat the config as the backup, not the cached objects, which refill from your app databases.

Notice an outdated path? Let us know.