Memcached: Getting Started

How to get started with Memcached

Welcome to the Stackhero documentation

Stackhero offers a fully managed Memcached cloud that simplifies application caching while ensuring security and high performance.

  • Apply updates in just seconds with a single click.
  • Enjoy consistent performance and enhanced security on a private, dedicated infrastructure.

Save time and focus on development. Stackhero's Memcached cloud hosting is up and running in about 5 minutes.

Memcached is an extremely fast in-memory key/value storage system. It is widely used for caching and improving the performance of dynamic web applications by reducing the load on databases.

We have provided some code examples to help you connect to a Memcached instance. You will find them in the following Git repository: https://github.com/stackhero-io/memcachedGettingStarted.

By default, Memcached does not encrypt communications. However, on Stackhero, TLS encryption is enabled by default.

You will need a client that supports TLS encryption. If your preferred client does not support TLS, you can use stunnel on your client server. Stunnel listens locally on port 11211 (for unencrypted data) and forwards this data to your Stackhero instance over a TLS encrypted connection.

Your Memcached instance is safeguarded with a login and a password. Stackhero automatically sets a very strong default password. If you decide to change it, ensure that the new password is equally robust.

For enhanced security and to protect against brute force attacks, it is advisable to configure Stackhero's firewall (accessible under the "Firewall" tab) to restrict connections only to your authorized IP addresses. This step is important and can significantly improve your security.