protected function cache_results( $results, Model $model ) {

		if ( $results instanceof Collection ) {
			$this->cache_collection( $results, $model );
		} elseif ( is_object( $results ) ) {
			$this->cache_single( $results, $model );
		}
	}
protected function cache_results( $results, Model $model ) {

		if ( $results instanceof Collection ) {
			$this->cache_collection( $results, $model );
		} elseif ( is_object( $results ) ) {
			$this->cache_single( $results, $model );
		}
	}
protected function cache_results ( $ results , Model $ model ) { if ( $ results instanceof Collection ) { $ this -> cache_collection ( $ results , $ model ) ; } elseif ( is_object ( $ results ) ) { $ this -> cache_single ( $ results , $ model ) ; } }
Cache the results of a relation.

@since 2.0

@param Collection|Model|mixed $results
@param Model                  $model
Cache the results of a relation .