In-memory key-value cache. Simple, fast, and multi-threaded. Single instance, no persistence: a restart empties the cache. No login, so it is not reachable from the internet.
Install the CLI. See the install docs.
Log in:
runway login
Add an SSH key. See key setup, or use the shortcut:
runway local key setup
We are providing a template for one-click deployments of Memcached to Runway. You can either deploy Memcached from your browser, or on the command line via:
runway app create --app='my-memcached-cache' --plan='free-launch'
runway app deploy template --app='my-memcached-cache' --template='memcached'
After deployment,
runway app show --app='my-memcached-cache'
will display the connection details, so you can connect to your new Memcached from other apps.
Our Memcached template supports the following options:
image_tag - Memcached version. Nothing is kept on disk, so any change is safe. (1.6.45-alpine, 1.6.45-trixie)max_connections - Max open client connections. Each one costs a little memory. (default: 1024)memory_mb - Cache size in MB. Keep it well below the plan’s RAM: memcached needs
extra room for connections and its own overhead. 64 fits the free plan. (default: 64)You can set them on the command line during deployment:
runway app deploy template --app='my-memcached-cache' --template='memcached' \
image_tag=1.6.45-alpine \
max_connections=1024 \
memory_mb=64
Memcached is distributed under the BSD-3-Clause license - source code available at https://github.com/memcached/memcached.