Using Hangfire to cache datates to memory available to calling app

Hi there.

I was wondering if Hangfire is suitable for going off and populating objects in memory for the calling application to use?

I was hoping to use Hangfire in a web API to prepare datasets (off of the first API call) into memory available for future API calls. The simple issue is it doesn’t run in the same HTTP context at all and so the only way to pass data back to the caller is via the DB unless i’m mistaken.

Has anybody experienced similar? Shall I just use async tasks?

Many thanks,