/** * Get cached data * * @param string $key Cache key * @param int $modified_time Unix time of data modified. * If stored time is older then modified time, return false. * @return false|mixed Return false on failure or older then modified time. Return the string associated with the $key on success. */ function get($key, $modified_time = 0) { if (!$this->handler) { return false; } return $this->handler->get($key, $modified_time); }
/** * Get cached data * * @param string $key Cache key * @param int $modified_time Unix time of data modified. * If stored time is older then modified time, return false. * @return false|mixed Return false on failure or older then modified time. Return the string associated with the $key on success. */ function get($key, $modified_time = 0) { if (!$this->handler) { return false; } $key = $this->getCacheKey($key); return $this->handler->get($key, $modified_time); }