From AEM publishers we have user dashboard which fires multiple graphQL queries to the backend through AEM HttpConnection in java. Is there a way to cache those ?
If you are thinking about utilizing some memory cache solution then you can try building some custom solution using EhCache https://www.ehcache.org/ ACS commons also offer something similar which you can look at https://adobe-consulting-services.github.io/acs-aem-commons/features/http-cache/index.html But one thing to highlight is if you are using AEMaaCS then in memory cache is anyway not recommended. You can check if it is possible to leverage dispatcher caching in your case (depending on how your Front end is invoking your backend).
If you are thinking about utilizing some memory cache solution then you can try building some custom solution using EhCache https://www.ehcache.org/ ACS commons also offer something similar which you can look at https://adobe-consulting-services.github.io/acs-aem-commons/features/http-cache/index.html But one thing to highlight is if you are using AEMaaCS then in memory cache is anyway not recommended. You can check if it is possible to leverage dispatcher caching in your case (depending on how your Front end is invoking your backend).