note 110426 modified in function.apc-store by danbrown

From: Date: Thu, 06 Dec 2012 14:35:55 +0000
Subject: note 110426 modified in function.apc-store by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192346@lists.php.net to get a copy of this message
use apc_store() if you want to find out if the result of apc_delete(), apc_fetch(), apc_add(), ..... is REALLY FALSE or you have a problem with APC. <?php if (!apc_fetch('key')) { if (!apc_store('apc_check', 1, -1)) { // you have a problem with APC } else { // apc works but variable isn´t set } } ?> --was-- use apc_store() if you want to find out if the result of apc_delete(), apc_fetch(), apc_add(), ..... is REALLY FALSE or you have a problem with APC. if (!apc_fetch('key')) { if (!apc_store('apc_check', 1, -1)) { // you have a problem with APC } else { // apc works but variable isn´t set } } http://php.net/manual/en/function.apc-store.php

« previous php.notes (#192346) next »