Is there a problem with using memcached in PHP to update data synchronously?

Source: Internet
Author: User
Is there a problem with using memcached in PHP to update data synchronously?

Reply content:

Is there a problem with using memcached in PHP to update data synchronously?

I think the use of memcache to pay attention to two more frequently occurring problems:

  1. Update a key concurrently. (Solution: Locking)
  2. After the memory partition is full, the memory block will be kicked off if it stores the new key again. (Solution: Memcache monitoring)

PHP uses memcache generally used to do a layer of MySQL data cache, to reduce the direct connection to MySQL, thereby improving performance.
The Memcache data save failed, generally because the server side of the data key already exists
In general, as long as your data key and value meet memcache conditions, and memory is enough to use, there will be little data update failure!

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