get_transient WordPress

// Save the API response so we don't have to call again until tomorrow.
set_transient( 'css_t_subscribers', $data, DAY_IN_SECONDS );

// Do we have this information in our transients already?
$transient = get_transient( 'css_t_subscribers' );
  
// Do things...

refrence:
https://css-tricks.com/the-deal-with-wordpress-transients/
Lokesh003Coding