Is there a limit to the number of memcached cached content?

Source: Internet
Author: User
I set up a website to cache some of the data with memcached.
I'm thinking right now. Each article is cached by ID, and the number of views per article is cached by the article Id+views, which is especially so.
But I do not understand the characteristics of memcached, I would like to do something wrong? There are about 10,000 or so data.
Memory 4gb.

Reply content:

I set up a website to cache some of the data with memcached.
I'm thinking right now. Each article is cached by ID, and the number of views per article is cached by the article Id+views, which is especially so.
But I do not understand the characteristics of memcached, I would like to do something wrong? There are about 10,000 or so data.
Memory 4gb.

There is no limit on the number, memcached is a hash storage algorithm, in principle there is no limit, but the large number will affect efficiency. And how much data you can store depends on the size of your data every day.

Memcached is a cache, especially is not suitable for like you This is almost the approximate length of the situation, because its chunk characteristics, although the overall is full, but there is a decline in hit ratio, it is recommended to use Redis, must use memcached words, it is recommended to hit the failure to read the database this way

  • 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.