Пример #1
0
 /**
  * 读取缓存,失败或缓存撒失效时返回false
  *
  * @access public
  *
  * @param string $key 所要读取数据的key
  *
  * @return mixed
  */
 public function get($key)
 {
     //参数分析
     if (!$key) {
         return false;
     }
     return $this->_dbLink->get($key);
 }
 /**
  * 读取缓存,失败或缓存撒失效时返回false
  *
  * @access public
  *
  * @param string $key 所要读取数据的key
  *
  * @return mixed
  */
 public function get($key)
 {
     //参数分析
     if (!$key) {
         return false;
     }
     return $this->_Memcached->get($key);
 }