Give the user the possibility to use a predefined cache as a template to configure all caches created by the dialect.
This could be done by configuring a suitable property of the dialect and maybe a default value (ex: "default").
Before applying the configuration, it will be up to the dialect to check if the template cache exists and if not, throwing an appropriate exception.
Another issue is providing similar feature: OGM-1329.
the difference between them are that the application of configuration has:
The scope is all created by dialect caches (this one)
The scope is "per Entity" cache (other one)
Maybe we can merge the issues together, where a "per Entity" definition overrides the all cache definition.
This has been merged but I will wait to close this issue because I want to update the documentation
I'm agree with you. Thank you Davide
I'm going to close this one and create a separate issue