<Searching by Value in Redis in Spring Boot and Ko...
# stackoverflow
u
Searching by Value in Redis in Spring Boot and Kotlin Let's consider we are in Spring Boot with Kotlin. For Redis queries, we're using a RedisTemplate dependency. Considering the following data class: data class Person ( val id: String, val name: String ) For saving we'll use: fun save(person: Person) { redisTemplate.opsForValue().set(person.id, person) } Then, is it possible to search by name, which is a property of the Person class? And if yes? How can this be done? Thank you in advance!