skip to Main Content

Using mongo and redis cache with both repositories in Spring Boot

I want to use both Redis and Mongo with repository manner (I do not want to use spring cache annotations but repository methods). I annotate the main class with the following annotations. @EnableMongoRepositories(basePackageClass = PersistencyRepository.class) @EnableRedisRepositories(basePackageClass = CacheRepository.class) @SpringBootApplication Repos…

VIEW QUESTION

How to mock Jest Redis in Nestjs

I'm working on NestJs application and wrote unit test for my authenticateUser function in user.service.ts.It's has pass in my local machine.but when I deployed it in to server and run unit test, i got an error Redis connection to 127.0.0.1:6379…

VIEW QUESTION
Back To Top
Search