Using cache Java libraries in custom osgi modules

How using cache to persist some values in service builder modules to cache data retrieved from rest api? Do I need the liferay-multi-vm.xml?

Which is the approach/guide lines in Liferay 7.4?

Hi @Moozo,

Service Builder enables service entities and service entities finder results cache by default. Please see: Service Builder - Liferay Official Documentation - Liferay Learn

However, if you want to modify the cache for Service Builder Service Entities or Entity Finder results, then you need to override liferay-*-vm.xml. For more info on this, you can refer to our legacy documentation: Legacy Documentation - Liferay Official Documentation - Liferay Learn → Developing Liferay DXP 7.2 → chapter 329 (Overriding Cache)