Original article: http://www.yaosansi.com/post/1396.html
Official memcached: http://danga.com/memcached/
For more information about memcached, see memcached deep analysis.
Download Windows Server
: Http://code.jellycan.com/memcached/
Install memcache Server(You can also start it without installation)
1. Download the stable version of memcached for Windows and decompress it to a disk, for example, in C:/memcached
2. Enter "C:/memcached/memcached.exe-D install" in cmd to install the SDK.
3. Enter "C:/memcached/memcached.exe-d start" to start. Note: in the future, memcached will be used as a Windows Service and will be automatically started every time it is started. In this way, the server has been installed.
If the download is a binary version, you can directly run it. You can add parameters to set it.
Common settings:
-P <num> listening port
-L <ip_addr> connected IP address. The default value is local.
-D start: Start the memcached service.
-D restart: restart the memcached service.
-D stop | Shutdown the running memcached Service
-D install the memcached Service
-D uninstall memcached Service
-U <username> runs as <username> (valid only when running as root)
-M <num> maximum memory usage, in MB. The default value is 64 MB.
-An error is returned when M memory is used up, instead of deleting items.
-C <num> maximum number of simultaneous connections. The default value is 1024.
-F <factor> block size growth factor. The default value is 1.25.
-N <bytes> minimum allocated space. The default value of key + value + flags is 48.
-H Show Help
Then you can use the. NET memcached client to try it out.
C # available APIs (detailed descriptions and notes are provided for each client API)
Https://sourceforge.net/projects/memcacheddotnet/
Http://www.codeplex.com/EnyimMemcached/-client developed in. NET 2.0 keeping performance and extensibility in
Mind. (supports consistent hashing .)
Http://code.google.com/p/beitmemcached/-client developed by Beit with new features.