/** * {@inheritdoc} */ public function save($id, $data, $lifeTime = 0) { if (true === $this->debug) { return true; } return $this->cache->save($id, $data, $lifeTime); }
/** * Puts data into the cache. * * @param string $id The cache id. * @param mixed $data The cache entry/data. * * @return bool TRUE if the entry was successfully stored in the cache, FALSE otherwise. */ public function save($id, $data, $ttl = 20) { if ($this->businessEntityDebug) { parent::save($id, $data, $ttl); } else { parent::save($id, $data); } }
/** * Puts data into the cache. * * @param string $id The cache id. * @param mixed $data The cache entry/data. * * @return bool TRUE if the entry was successfully stored in the cache, FALSE otherwise. */ public function save($id, $data, $ttl = 20) { if ($this->debug) { parent::save($id, $data, $ttl); } else { parent::save($id, $data); } }