Hello Valentina! I saw the post on LinkedIn about this project and issue #86 matches my studies about Redis and my experience. Actually, I’ve never worked with Redis using Spring Data only caching objects, retrieving and invalidating direct with an external dependency library.
I learned a lot about this issue and hope that be useful, follow the additions and changes:
Add service Redis to docker-compose.yml and the news variables to the env files;
Add module adapter-persistence-redis;
Standardize ProfilesName static variables modifying to uppercase with an underscore between the words following the Java convection;
Make available all required active profiles for all test classes with @SpringBootTest;
Enable the BankingApplicationTests;
Set JpaBankAccountStorage as the main Bean for BankAccontRepository utilization because with RedisBankAccountStorage there are two beans kinds of BankAccountStorage available and can make a conflict;
Add unit tests to BankAccountMapper to validate the Mapstruct implementation;
Index accountNumber attribute of the BankAccountModel;
Hello Valentina! I saw the post on LinkedIn about this project and issue #86 matches my studies about Redis and my experience. Actually, I’ve never worked with Redis using Spring Data only caching objects, retrieving and invalidating direct with an external dependency library.
I learned a lot about this issue and hope that be useful, follow the additions and changes:
docker-compose.yml
and the news variables to the env files;adapter-persistence-redis
;ProfilesName
static variables modifying to uppercase with an underscore between the words following the Java convection;@SpringBootTest
;BankingApplicationTests
;JpaBankAccountStorage
as the main Bean forBankAccontRepository
utilization because withRedisBankAccountStorage
there are two beans kinds ofBankAccountStorage
available and can make a conflict;BankAccountMapper
to validate the Mapstruct implementation;BankAccountModel
;