src/Model.php
protected static function is_data_cached( $pk ) {

		if ( ! static::$_cache ) {
			return false;
		}

		$data = Cache::get( $pk, static::get_cache_group() );

		return ! empty( $data );
	}
protected static function is_data_cached( $pk ) {

		if ( ! static::$_cache ) {
			return false;
		}

		$data = Cache::get( $pk, static::get_cache_group() );

		return ! empty( $data );
	}
Check if data is cached.

@since 1.0

@param int|string $pk Primary key for this record.

@return bool