Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Type Reference in the Redis data source #34841

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

cescoffier
Copy link
Member

Allows configuring the Redis data source with type references

The Redis data source used Class<?> to configure the type safety. Unfortunately, it didn't work with generics.

This commit adds methods using (Jackson) TypeReference to configure the various groups. Thus, generics are now supported.

Also:

  • deprecate the graph group, as Redis declared it is as end-of-life ( :-( )
  • deprecate search(Class keyType) as the index must be a string
  • re-structure a bit the Redis reference guide

Fix #34554
Fix #29865

@github-actions
Copy link

github-actions bot commented Jul 19, 2023

🙈 The PR is closed and the preview is expired.

@quarkus-bot

This comment has been minimized.

The Redis data source used Class<?> to configure the type safety. Unfortunately, it didn't work with generics.

This commit adds methods using (Jackson) TypeReference to configure the various groups. Thus, generics are now supported.

Also:

- deprecate the graph group, as Redis declared it is as end-of-life ( :-( )
- deprecate search(Class<K> keyType) as the index must be a string
- re-structure a bit the Redis reference guide
@cescoffier cescoffier force-pushed the redis-use-type-reference branch from 879a286 to ed8b789 Compare July 19, 2023 13:37
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 19, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@cescoffier cescoffier merged commit 4efd9d8 into quarkusio:main Jul 19, 2023
@quarkus-bot quarkus-bot bot added kind/bugfix kind/enhancement New feature or request labels Jul 19, 2023
@quarkus-bot quarkus-bot bot added this to the 3.3 - main milestone Jul 19, 2023
@cescoffier cescoffier deleted the redis-use-type-reference branch July 19, 2023 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants