/** * Test if a cache is available or not (for the given id) * * @param string $id cache id * @return mixed|false (a cache is not available) or "last modified" timestamp (int) of the available cache record */ public function test($id) { $fastTest = $this->_fastBackend->test($id); if ($fastTest) { return $fastTest; } else { return $this->_slowBackend->test($id); } }
/** * Test if a cache is available or not (for the given id) * * @param string $id cache id * @return mixed|false (a cache is not available) or "last modified" timestamp (int) of the available cache record */ public function test($id) { self::_validateIdOrTag($id); $fastTest = $this->_fastBackend->test($id); if ($fastTest) { return $fastTest; } else { return $this->_slowBackend->test($id); } }
/** * Test if a cache is available or not (for the given id) * * @param string $cacheId cache id * @return mixed|false (a cache is not available) or "last modified" timestamp (int) of the available cache record */ public function test($cacheId) { return $this->_backend->test($cacheId); }