# Memcached

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. It is open source and self-hosted, installable on Docker Hub, Kubernetes (Helm), Unraid and TrueNAS.

Canonical page: https://ourlocalhost.com/app/1557/memcached

## Description

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

## Platform availability

Available on 3 of 10 platforms: Unraid, TrueNAS, Helm.

## Health score

72/100 (Good), based on 5 of 5 factors.
- Maintained: 67 (last commit 134 days ago)
- Popular: 83 (14,309 GitHub stars)
- Easy to install: 55 (3 install platforms, install notes, Docker image)
- Light to run: 100 (64 MB minimum RAM, runs on ARM)
- Security check: 67 (no serious findings, CI, OpenSSF Scorecard 3.9/10)

## Links

- Docker Hub: https://hub.docker.com/r/bitnamisecure/memcached/
- Kubernetes (Helm): https://artifacthub.io/packages/helm/bitnami/memcached
- Official website: https://memcached.org/
- Unraid: https://ca.unraid.net/apps/memcached-0mu8f8410ak6gw?q=memcached
- GitHub: https://github.com/memcached/memcached
- Documentation: https://docs.memcached.org
- TrueNAS: https://apps.truenas.com/catalog/memcached/

## Common questions

### How do I enable TLS for memcached?

OpenSSL is optional and enables TLS support, so install a relatively up-to-date OpenSSL development package and use pkg-config. Build with ./configure --enable-tls.

### How do I configure the built-in proxy to find my Memcached servers?

In the proxy config's pools section, replace the example host and port values with the actual addresses of your Memcached servers. Wrong backend addresses make the proxy unable to reach the cache servers, so data will not be saved or found.

### Is it safe to use the -k/mlockall option for a large cache?

The -k/mlockall option can be dangerous when using a large cache, so make sure the memcached host does not swap. Memcached is memory-only and should never go to disk.

### Does memcached have a built-in web admin interface?

Memcached has no built-in web interface. Administrators typically connect via telnet to localhost 11211 and type commands such as stats, stats items, stats slabs, and flush_all.

## Alternatives

- KeyDB: KeyDB is a distributed, Redis-compatible key-value database that adds true multi-master replication, letting any number of servers accept w…
- Redis: Redis is a fast, in-memory data structure store that can be used as a database, cache, and message broker.
- Valkey: Valkey is an open-source, high-performance in-memory key-value datastore forked from Redis.

---
Source: Our Local Host (https://ourlocalhost.com/app/1557/memcached), the self-hosted and open-source app directory.
