generateKey($name, $type), $success); if ($success) { $callback(true, $value); return; } $callback(false, null); } /** * Stores a value in the cache. Overwrites the previous value if there was one. * * @param string $name * @param int $type * @param string $addr * @param int $ttl */ public function store($name, $type, $addr, $ttl = null) { apc_store($this->generateKey($name, $type), $addr, $ttl); } /** * Deletes an entry from the cache. * * @param string $name * @param int $type */ public function delete($name, $type) { apc_delete($this->generateKey($name, $type)); } }