How PHP is cached with Memcahe. Write the interface, can not use the session. When you do the SMS Verification Code, the verification code is deposited

Source: Internet
Author: User
How PHP is cached with Memcahe. Write the interface, can not use the session. Do SMS Verification code, the verification code into Memcahe, and then take out the Memcahe in the verification code to check the school. Little Bai Tiu Pointing


Reply to discussion (solution)

Here is a more detailed memcache basic tutorial

/* OO API */$memcache _obj  = new  memcache;/* Connect to memcached Server */$memcache _obj, connect (' Memcache _host ',  11211);/* set ' Var_key ' corresponding value, using instant compression failure time is 50 seconds */$memcache _obj-Set (' Var_key ',  ' some really big Variable ',  memcache_compressed,  (), Echo  $memcache _obj, get (' Var_key ');


http://blog.csdn.net/fdipzone/article/details/7166514
  • 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.