protected function getValue($key) { return $this->memcache->get($key); }
public function batchGet(array $keys) { $_keys = array_map(array($this, 'buildSecurityKey'), $keys); $tags = array_fill(0, count($_keys), $this->compress); $_datas = $this->memcache->get($_keys, $tags); $_return = array(); foreach ($keys as $_i => $key) { $_return[$key] = isset($_datas[$_keys[$_i]]) ? $this->formatData($key, $_datas[$_keys[$_i]]) : false; } return $_return; }