/**
  * Deletes entry from memcache/apc DB.
  *
  * @param string $key Cache internal key name
  *
  * @param boolean True on success, False on failure
  */
 private function delete_record($key)
 {
     if ($this->type == 'memcache') {
         // #1488592: use 2nd argument
         $result = $this->db->delete($key, 0);
     } else {
         $result = apc_delete($key);
     }
     if ($this->debug) {
         $this->debug('delete', $key, null, $result);
     }
     return $result;
 }
示例#2
0
 /**
  * Deletes entry from memcache/apc DB.
  */
 private function delete_record($key, $index = true)
 {
     if ($this->type == 'memcache') {
         // #1488592: use 2nd argument
         $this->db->delete($this->ckey($key), 0);
     } else {
         apc_delete($this->ckey($key));
     }
     if ($index) {
         if (($idx = array_search($key, $this->index)) !== false) {
             unset($this->index[$idx]);
         }
     }
 }