Hi,

On Mon, 2021-10-11 at 16:18 +0200, Jörg Hoh wrote:
> Hi,
> 
> I envision to have a WeakHashMap<String,Object>, which can be reached
> via a
> new API call "getTemporaryStorage()" (I am very open for a better
> name),
> which we could implement as default method right in the interface.

Is the basic need to only know when the resource resolver is going to
be closed in order to flush the cache?

If that is the case we could expose a hook that notifies interested
parties about a ResourceResolver closing so they can flush the caches. 

The benefit would IMO be that we keep the API lean and allow creating
new bundles that implement the caching logic.

Thanks,
Robert

Reply via email to