Memcached in ASP. NET [Final Version]

Source: Internet
Author: User

Install Memcache in Windows:
1. Download the stable version of memcache for windows and decompress it to a disk, for example, in c: \ memcached
2. First, find the original file of cmd.exe (in c: \ windows \ system32 \ cmd.exe) at the startup (that is, the command line administrator's ID is installed ),
Right-click it as an administrator, and enter 'C: \ memcached \ memcached.exe-d install' in the next step.
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.
4. Monitoring
E: \ memcached \ memcached.exe-p 11121-m 64-vv


NET developers began to abandon the built-in cache mechanism of ASP. NET, instead of using Memcached, a distributed memory cache system, which was initially developed for the LiveJournal website by Danga Interactive.
A fundamental problem is how to process outdated data. When running on a separate Web server, you can easily clear a cache that has been confirmed to be changed. Unfortunately, ASP. NET does not have a good way to support multiple servers. The cache on each server knows nothing about changes to other caches.
ASP. NET allows you to invalidate a cache by using a Trigger Based on the file system and database table. However, this also has problems. For example, database Triggers require expensive Round Robin and trigger lengthy programming. However, we still have other options.
Unlike the built-in cache of ASP. NET

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.