I want to clear cache data from 2nd level cache by calling below method:
sessionFactory.getCache().evictEntityRegions();
I just want to know , is there any harm in doing this? For example: What will happen if I try to clear cache in middle of transaction?
Thanks in advance.