Skip to content

Quarkus Cache is not working in Bean that is created via a Producer #34436

Open
@StefanMMS

Description

Describe the bug

I annotated a function with @CacheResult in a class that gets created as a bean by a producer.
The cache is created as I can see in the DEV UI, but no values are written to the cache.

If I create the bean by just adding the @ApplicationScoped annotation and remove the producer everything works fine.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

openjdk version "18.0.2" 2022-07-19

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.16.5.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 7.4

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/cachearea/housekeepingIssue type for generalized tasks not related to bugs or enhancements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions