apc_store_with_pure_sleep

Similar to apc_store but requires that any serialized objects' __sleep methods can be called from a pure context

function apc_store_with_pure_sleep(
  mixed $key_or_array,
  mixed $var = NULL,
  int $ttl = 0,
  int $bump_ttl = 0,
): mixed;

Parameters

  • mixed $key_or_array
  • mixed $var = NULL
  • int $ttl = 0
  • int $bump_ttl = 0

Returns

  • mixed