forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redis Cache: improve the API consistency
All the `get*` methods in the `RedisCache` API now have 3 variants: - not accepting value type, using the configured default - accepting value type as a `Class` - accepting value type as a `TypeLiteral` Internally, all these methods delegate to an implementation that takes a `Type`. The error message about the default value type was also consolidated into a single place, the `enforceDefaultType()` method.
- Loading branch information
Showing
2 changed files
with
109 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters