Memcached
memcached is a free & open source, high-performance, distributed memory object caching system, used for In-memory Database . 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.
Prepare
When referring to this document to use memcached, please read and ensure the following points:
-
This application is installed by Websoft9 console.
-
The purpose of this application complies with the bsd3Clause open source license agreement.
-
Configure the domain name or server security group opens external network ports for application access.
Getting started
Initial setup
- When completed installation of Memcached at Websoft9 Console, get the applicaiton's Overview and Access information from My Apps
Login to the Console
Memcached-admin is pre-built in this application orchestration but is not enabled by default. If you need to enable it, please refer to the following steps:
-
Select Websoft9 console > My apps > compose > Go to Edit Repository.
-
Modify the Memcached docker-compose.yml.
- Host ports in the ports element
- Remove the profiles element.
-
After rebuilt the application, your can access the control panel through
http:/URL:port
.
Telnet Connection
-
Run the telnet command to connect to Memcached.
telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
^]'. -
Connected successfully, the system enters the Memcached CLI, and inputs the command
stats
.$ stats
STAT pid 651
STAT uptime 891
STAT time 1585225158
STAT version 1.4.15
STAT libevent 2.0.21-stable
...
Configuration options
- Client command: Memcached Commands is run through Telnet.
- Server-side commands:
memcached -h
. - Memcached-admin: You need to modify the compose file to enable it.