What is Memcached?
Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
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.
Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.
Step-by-step guide:
- Download Memcached
- Unzip
- Command Prompt
- Run Commands
1. Download Memcached
Firstly you have to download the Memcached installation zip file from the original website. you can click here for download.
2. Upzip
After downloading the file, you have to unzip the file and copy memcached folder to C: drive.
After you copy you will have something like this, C:\memcached. in the memcached folder there will be a file named memcached.exe. if you have all set like this then you are good to go.
3. Comand Prompt
After step 2 we have to open CMD on that (C:\memcached) location. CMD should be Run as Administrator.
4. Run Commands
For installing the Memcached Server we need to run the following command.
memcached.exe -d install
To start the Memcached Server run the following command.
memcached.exe -d start
by this command, the server will start at default port 11211.
To stop the Memcached Server run the following command.
memcached.exe -d stop