protected function storeCache()

in src/HHClientFallbackHandler.hack [72:83]


  protected function storeCache(self::TCache $data): void {
    \apc_store(__CLASS__.'!cache', $data);

    if (!\is_writable(\dirname($this->getCacheFilePath()))) {
      return;
    }

    \file_put_contents(
      $this->getCacheFilePath(),
      \json_encode($data, \JSON_PRETTY_PRINT),
    );
  }