Spring Data Redis
See original GitHub issueDescribe the extension Spring Data Redis provides easy configuration and access to Redis from Spring applications. It offers both low-level and high-level abstractions for interacting with the store, freeing the user from infrastructural concerns.
We are currently considering the migration of our set of applications from Spring Boot to Quarkus and I am estimating the effort that it would take to accomplish this migration. We are already using this library and we would like to have it as is adapted to Quarkus. If not, the effort of adapting this library in our code would be too large.
Interested in this extension, please +1 via the emoji/reaction feature of GitHub (top right).
Configuration suggestion We are using the following annotation in our code:
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.annotation.Id;
@RedisHash("People")
public class Person implements Serializable {
@Id String id;
String firstname;
String lastname;
Address address;
}
From the documentation:
We have a pretty simple domain object here. Note that it has a
@RedisHash
annotation on its type and a property namedid
that is annotated withorg.springframework.data.annotation.Id
. Those two items are responsible for creating the actual key used to persist the hash.
Additional context
- This is the documentation of the
RedisHash
annotation in Spring Data Redis: https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/#redis.repositories.usage - This is the documentation of the Redis Extension, but it is not the Spring version of it: https://quarkus.io/guides/redis
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:16 (14 by maintainers)
Top GitHub Comments
Repository yes, but active record no.
Quarkus 2.11 will contain a new Redis API, so maybe we can leverage it for this