Memcached: Getting started
How to get started with Memcached
Welcome to the Stackhero documentation
Stackhero provides a fully managed Memcached cloud that makes application caching simple, secure, and high-performing.
- Apply updates in seconds with one click.
- Get consistent performance and strong security on a private, dedicated infrastructure.
Free up your time and focus on building. 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.
Encrypt Memcached communications (TLS)
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.
Protect your Memcached from brute force attacks
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.