src/snapchat_cache.php
public function get($key) {
		// First, check to see if the result has been cached.
		if (!isset($this->_cache[$key])) {
			return FALSE;
		}

		// Second, check its freshness.
		if ($this->_cache[$key]['time'] < time() - self::$_lifespan) {
			return FALSE;
		}

		return $this->_cache[$key]['data'];
	}
public function get($key) {
		// First, check to see if the result has been cached.
		if (!isset($this->_cache[$key])) {
			return FALSE;
		}

		// Second, check its freshness.
		if ($this->_cache[$key]['time'] < time() - self::$_lifespan) {
			return FALSE;
		}

		return $this->_cache[$key]['data'];
	}
public function get ( $ key ) { // First, check to see if the result has been cached. if ( ! isset ( $ this -> _cache [ $ key ] ) ) { return FALSE ; } // Second, check its freshness. if ( $ this -> _cache [ $ key ] [ 'time' ] < time ( ) - self :: $ _lifespan ) { return FALSE ; } return $ this -> _cache [ $ key ] [ 'data' ] ; }
Gets a result from the cache if it's fresh enough.

@param string $key
The key of the result to retrieve.

@return mixed
The result or FALSE on failure.
Gets a result from the cache if it s fresh enough .