Discussion about this post

User's avatar
Alex's avatar

It's not clear if @Cacheable should be added to findByIdWithFallback() as well. The code shows one thing but the text says otherwise.

I would say it's not needed, since the call to self.findById() will be cached, unless you want to cache the whole of findByIdWithFallback(). But it's still confusing.

No posts

Ready for more?