memcached Study notes----
Installation and Configuration
First, download the memcached related files.
Open the console, enter the memcached main program directory, enter:
memcached.exe-d Install // installation memcached service memcached.exe-d start // Open the Memcached service
You will see that there is more than one memcached service process in the process.
Client Connection and Operation
Open a new console and enter:
Telnet to your server IP (local 127.0.0.1) memcached's listening port number (default is 11211)
This allows you to connect to the memcached as a client and view and manipulate it.
to view memcached service information, enter at the command line: stats The following information is displayed:
memcached Access command:
The command format is:
1 <command name> <key> <flags> <exptime> <bytes>2///Note that you should remember to enter 3 <data block>
Command explanation:
<command name> |
Set/add/replace |
<key> |
find keywords |
<flags> |
integer parameter, which the client uses to store additional information about key-value pairs |
<exptime> |
0 = Forever) |
<bytes> |
bytes stored |
<data Block> |
data blocks stored (can be directly understood as key-value value ) |
Write this today and continue tomorrow ....
memcached configuration and use under Windows