I need cache to be implemented on global level for a component

I have 1 custom component in which I have implemented google guava cache(https://www.baeldung.com/guava-cache). But this cache is limited to single user. I want to set cache on global level. So that same cache can be used by multiple user. Please help me.

Probably best to create a service to hold the cache rather than holding it in a component.