February 2018
Intermediate to advanced
356 pages
9h 10m
English
We have created the ReactiveRedisTemplate, then we can use this object in our repository implementation. We will create a simple repository to interact with Redis, remember the repository should be reactive, it is an important characteristic of our application. Then we need to return Mono or Flux to make the repository Reactive. Let's look at our repository implementation:
package springfive.twittertracked.domain.repository import org.springframework.data.redis.core.ReactiveRedisTemplateimport org.springframework.stereotype.Serviceimport reactor.core.publisher.Fluximport reactor.core.publisher.Monoimport springfive.twitterconsumer.domain.TrackedHashTag @Serviceclass TrackedHashTagRepository(private val ...
Read now
Unlock full access