| | |
| | | /** |
| | | * Adds entry into memcache/apc DB. |
| | | * |
| | | * @param string $key Cache key name |
| | | * @param string $key Cache internal key name |
| | | * @param mixed $data Serialized cache data |
| | | * |
| | | * @param boolean True on success, False on failure |
| | |
| | | /** |
| | | * Deletes entry from memcache/apc DB. |
| | | * |
| | | * @param string $key Cache key name |
| | | * @param string $key Cache internal key name |
| | | * |
| | | * @param boolean True on success, False on failure |
| | | */ |
| | |
| | | { |
| | | if ($this->type == 'memcache') { |
| | | // #1488592: use 2nd argument |
| | | $result = $this->db->delete($ckey, 0); |
| | | $result = $this->db->delete($key, 0); |
| | | } |
| | | else { |
| | | $result = apc_delete($ckey); |
| | | $result = apc_delete($key); |
| | | } |
| | | |
| | | if ($this->debug) { |
| | | $this->debug('delete', $ckey, null, $result); |
| | | $this->debug('delete', $key, null, $result); |
| | | } |
| | | |
| | | return $result; |