How to set the cache for the built-in SimplePie feed parser?

Cache duration value (defaults to 43200 seconds) is set when feed object is generated and passed through wp_feed_cache_transient_lifetime filter with additional argument being feed URL.

This allows to conveniently filter it both globally and for specific feeds.

See fetch_feed() source for this and other hooks you can use to modify its behavior.