public function set($key, $value, $ttl) { $r = apc_store($this->_prefix . $key, $value, $ttl); if (!$r) { throw new ApcException('apc_store failed for `:key` key', ['key' => $key]); } }