Memcached
The managed Memcached service — connecting your app, sizing, eviction, and common caching patterns.
4 articles
Common Memcached use cases
Memcached is an application-controlled key-value cache: your code decides what to store, under which key, and for how long. That makes it a good fit for a handful of recurring patterns. This article walks through the most common ones and closes with a note on when Memcached is the right tool versus the proxy cache.
3 minConnecting to Memcached
Once you have a managed Memcached instance running, your containers connect to it directly over the internal project network. There is no public endpoint and no authentication step — access is restricted to containers in the same project. This article shows how to wire up a client library in several languages.
3 minMemcached
Bahriya lets you deploy managed Memcached instances alongside your containers. Memcached is a high-performance, in-memory key-value cache commonly used to speed up applications by reducing database load.
3 minSizing and eviction
Memcached is an in-memory cache with a fixed memory budget. Understanding how that budget is used, what happens when it fills up, and how to tell when you need more, is the key to running it well. The short version: pick a memory size, let Memcached evict old entries automatically when it runs out, and resize when your hit rate drops.
3 min