Cache Design Overview

Source: Internet
Author: User

The following issues need to be considered in cache design:

1. cache data synchronization problems

2. cache update Problems

For data synchronization, multithreading technologies must be considered.

1. Lock keyword

2. readerwriterlock/readerwriterlockslim

3. Interlocked

4. mutex

5. Monitor

Consider the following issues for data updates:

1. Automatic update (including use of the validity period)

2. Manual Update (including:CodeDirect call, time notification)

3. weakreference (if you want to consider spatial factors)

I have previously published an articleArticleLet's see whether the lock is reliable.

Now this lock solution has been officially used. The above is the technical summary of the cache.

I also hope you will give your comments.

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.