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
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
------to solve the idea----------------------
Here is a more detailed memcache basic tutorial
------to solve the idea----------------------
/* OO API */
$memcache _obj = new memcache;
/* Connect to memcached Server */
$memcache _obj, connect (' Memcache_host ', 11211);
/*
Set the ' Var_key ' corresponding value, using instant compression
Failure time is 50 seconds
*/
$memcache _obj set (' Var_key ', ' some really big variable ', memcache_compressed, 50);
echo $memcache _obj, get (' Var_key ');
http://blog.csdn.net/fdipzone/article/details/7166514