Home > Backend Development > PHP Tutorial > Redis creates instance

Redis creates instance

WBOY
Release: 2016-07-25 08:47:26
Original
955 people have browsed it
Redis creates instance
                 
                                                                                                                                                                                                                                                                                                                      ​​​'DATA_CACHE_TYPE' => 'Redis', // Data cache type,
'DATA_CACHE_TIME' => 36000,
                                                                                                       'REDIS_IP'                                                'timeout' => false,
'persistent' => false,
),
                                                                                                                                                                                                           
  1.       ),        
  2. /*
  3.                      Allow sharing
  4.                                                                                                     using             use using ’ s ’ s ’ through ’ s ‐ ‐ ‐ ‐ ‐ to public function allowshare($openid){                
  5.                 $times = $Cache->get ($key);
  6.                                                                                                       }elseif ( $times>4) {
  7.                         return false;
  8.                   }else {
  9.                                                                                                                               $Cache->
  10. Copy code
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template