memcached is a server software for PHP distributed management. When installed as a windows service:
E:AppServmem> memcached.exe -d install
After pressing Enter, Msvcp71.dll cannot be found. Download it and put it in c:/windwos/system32 or c:/windwos/system64
Run cmd as administrator and install it
Parameters:
-p listening port
-l The IP address of the connection, the default is the local machine
-d start starts the memcached service
-d restart Restart the memcached service
-d stop|shutdown shut down the running memcached service
-d install Install memcached service www.2cto.com
-d uninstall uninstall memcached service
-u Run as (only valid when running as root)
-m Maximum memory usage in MB. Default 64MB
-M Return an error when memory is exhausted instead of deleting items
-c Maximum number of simultaneous connections, default is 1024
-f block size growth factor, default is 1.25
-n minimum allocated space, key+value+flags default is 48
-h show help
After installation
telnet localhost 11211
View gesture
stats
add/set my1(name) 1(serial number) 3000(time) 10(number of characters)
get/delete my1(name)
flush_all(clear all)
Thanks to Baidu Experience and the Red and Black Alliance: http://jingyan.baidu.com/article/fd8044faf975a65031137aff.html
http://www.2cto.com/os/201209/157591.html
The above has introduced memcached, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.