Home > PHP > Function > APC > apc_fetch()

apc_fetch()

apc_fetch - Fetch a stored variable from the cache

Syntax

mixed apc_fetch (mixed $key, bool &$success)

Arguments

  • key - The key used to store the value (with apc_store()). If an array is passed then each element is fetched and returned.
  • success - Set to TRUE in success and FALSE in failure.

Description

Fetchs a stored variable from the cache.

Version

PHP PECL apc >= 3.0.0

Return value

The stored variable or array of variables on success; FALSE on failure