-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@EnableRedisRepositories cannot be configured to use their own RedisTemplate beans #1946
Comments
Note that The issue is caused by For now, there's no simple workaround. You need to spin up your repositories via I'm going to take this issue to the team for further discussion. |
One more thing: |
Sure I will the ticket there as well |
@mp911de Any update on this ?? |
Tried the above approach which was suggested by you. But no luck. |
Related to spring-projects/spring-data-keyvalue#363 |
This feature will be very useful. Any update on this? |
I have a use case like using two different regions Redis. Since the Redis is not synced between two different data centers. Need to update the data center in a synchronized fashion.
I'm facing a problem while updating the cache, The cache is updated in only one region.
I have configured the two different Redis in the same project and in one of the configurations I have added @primary(East Region) for the base use-case.
I have Autowired the above repository in my class. When there is any update happened, the cache is updated only in the east region. but it's not updating in the west. If we use RedisTemplate we can update in the two different regions. But I feel comfortable using the repository.save method to update in the cache.
When I dig deeper into the code the container factory is the default for all the Repository and it's the same for all the Repositories.
I need a way to differentiate the two different containers at the Repository level. In the @EnableJPARepository, it allows us to add the EntityBeanFactory but in the EnableRedisRepositories we don't have an option to point out the right container factory.
Is there any better way to do that ???
The text was updated successfully, but these errors were encountered: