Spring cacheable - filter out empty collections using SpEL
unless = "#result==null or #result.isEmpty()"
works for me.
Something like this
unless = "#result==null or #result.size()==0"
More about result and or.
unless = "#result==null or #result.isEmpty()"
works for me.
Something like this
unless = "#result==null or #result.size()==0"
More about result and or.