You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a repository class and I want to create 2 different cache regions for 2 different types of queries. Let's say that we have typea andtypeab. I am using scalacache with caffeine as the underlying implementation. Based on the docs, one has to configure it like so:
This sync interface picks up the implicit and caches the values appropriately. What happens when you want to have different regions though under the same roof/class. For example
I have a repository class and I want to create 2 different cache regions for 2 different types of queries. Let's say that we have
typea
andtypeab
. I am usingscalacache
withcaffeine
as the underlying implementation. Based on the docs, one has to configure it like so:and you should call it like
This
sync
interface picks up the implicit and caches the values appropriately. What happens when you want to have different regions though under the same roof/class. For examplethen the
sync
interface does not work since it gets confused as to which implicit to use. How do you overcome this?The text was updated successfully, but these errors were encountered: