Пример #1
0
 /**
  * get relation cache
  *
  * @param string $telephone
  * @param array $fields
  * @return string
  */
 private function _getCacheByTelephone($telephone, $fields = array())
 {
     $memcacheConfig = TZ_Loader::config('memcache');
     $host = $memcacheConfig['user']['host'];
     $port = $memcacheConfig['user']['port'];
     $cache = new HM_Memcached($host, $port);
     $uid = $cache->get($this->_telephonePreKey . $telephone);
     return $uid ? $this->_getCacheByUid($uid, $fields) : false;
 }